mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
softirq: Avoid stack switch from ksoftirqd
ksoftirqd() calls do_softirq() which switches stacks on several architectures. That makes no sense at all. ksoftirqd's stack is sufficient. Call __do_softirq() directly. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Heiko Carstens <[email protected]> Acked-by: David Miller <[email protected]> Cc: Paul Mundt <[email protected]> Reviewed-by: Frank Rowand <[email protected]> LKML-Reference: <[email protected]>
This commit is contained in:
parent
c9a443cdf7
commit
c305d524e5
1 changed files with 4 additions and 1 deletions
|
|
@ -738,7 +738,10 @@ static int run_ksoftirqd(void * __bind_cpu)
|
|||
don't process */
|
||||
if (cpu_is_offline((long)__bind_cpu))
|
||||
goto wait_to_die;
|
||||
do_softirq();
|
||||
local_irq_disable();
|
||||
if (local_softirq_pending())
|
||||
__do_softirq();
|
||||
local_irq_enable();
|
||||
preempt_enable_no_resched();
|
||||
cond_resched();
|
||||
preempt_disable();
|
||||
|
|
|
|||
Loading…
Reference in a new issue