Skip to content

Commit 1ee6f56

Browse files
committed
FRV: Fix the preemption handling
Fix the preemption handling in FRV code where the PREEMPT_ACTIVE value is incorrectly loaded into the threadinfo flags rather than the threadinfo preemption count. Unfortunately, the code cannot be simply converted to use preempt_schedule_irq() as is because FRV uses virtual interrupt disablement to cut down on the cost of actually disabling interrupts and thus local_irq_enable() doesn't actually enable interrupts. Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> cc: Al Viro <viro@ZenIV.linux.org.uk>
1 parent eded09c commit 1ee6f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/frv/kernel/entry.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ __entry_preempt_need_resched:
10861086
beq icc0,#1,__entry_return_direct
10871087

10881088
setlos #PREEMPT_ACTIVE,gr5
1089-
sti gr5,@(gr15,#TI_FLAGS)
1089+
sti gr5,@(gr15,#TI_PRE_COUNT)
10901090

10911091
andi gr23,#~PSR_PIL,gr23
10921092
movgs gr23,psr

0 commit comments

Comments
 (0)