projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa0d532
)
sparc: Use preempt_schedule_irq
author
Thomas Gleixner
<
[email protected]
>
Tue, 17 Sep 2013 18:53:08 +0000
(18:53 +0000)
committer
Thomas Gleixner
<
[email protected]
>
Wed, 13 Nov 2013 19:21:47 +0000
(20:21 +0100)
The low level preemption code fiddles with the PREEMPT_ACTIVE bit for
no reason and calls schedule() with interrupts disabled, which is
wrong to begin with. Remove the PREEMPT_ACTIVE fiddling and call the
proper schedule_preempt_irq() function.
Signed-off-by: Thomas Gleixner <
[email protected]
>
Acked-by: David S. Miller <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/
[email protected]
arch/sparc/kernel/rtrap_64.S
patch
|
blob
|
history
diff --git
a/arch/sparc/kernel/rtrap_64.S
b/arch/sparc/kernel/rtrap_64.S
index afa2a9e3d0a0c6734785dfaafc68538d7e393b51..76213db97a4a2f6cab2589d86a550c7f88c001de 100644
(file)
--- a/
arch/sparc/kernel/rtrap_64.S
+++ b/
arch/sparc/kernel/rtrap_64.S
@@
-306,12
+306,10
@@
to_kernel:
nop
cmp %l4, 0
bne,pn %xcc, kern_fpucheck
- sethi %hi(PREEMPT_ACTIVE), %l6
- stw %l6, [%g6 + TI_PRE_COUNT]
- call schedule
+ nop
+ call preempt_schedule_irq
nop
ba,pt %xcc, rtrap
- stw %g0, [%g6 + TI_PRE_COUNT]
#endif
kern_fpucheck: ldub [%g6 + TI_FPDEPTH], %l5
brz,pt %l5, rt_continue