]> Git Repo - linux.git/commitdiff
irq: Don't re-enable interrupts at the end of irq_exit
authorFrederic Weisbecker <[email protected]>
Thu, 28 Feb 2013 19:00:43 +0000 (20:00 +0100)
committerFrederic Weisbecker <[email protected]>
Thu, 28 Feb 2013 19:00:43 +0000 (20:00 +0100)
Commit 74eed0163d0def3fce27228d9ccf3d36e207b286
"irq: Ensure irq_exit() code runs with interrupts disabled"
restore interrupts flags in the end of irq_exit() for archs
that don't define __ARCH_IRQ_EXIT_IRQS_DISABLED.

However always returning from irq_exit() with interrupts
disabled should not be a problem for these archs. Prior to
this commit this was already happening anytime we processed
pending softirqs anyway.

Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul E. McKenney <[email protected]>
kernel/softirq.c

index f42ff97e1f8f4a3e932c979f3defe0d0eff6c538..dce38fac4f323f415cff156907b8ea44da1b9698 100644 (file)
@@ -334,9 +334,7 @@ static inline void invoke_softirq(void)
 void irq_exit(void)
 {
 #ifndef __ARCH_IRQ_EXIT_IRQS_DISABLED
-       unsigned long flags;
-
-       local_irq_save(flags);
+       local_irq_disable();
 #else
        WARN_ON_ONCE(!irqs_disabled());
 #endif
@@ -353,9 +351,6 @@ void irq_exit(void)
                tick_nohz_irq_exit();
 #endif
        rcu_irq_exit();
-#ifndef __ARCH_IRQ_EXIT_IRQS_DISABLED
-       local_irq_restore(flags);
-#endif
 }
 
 /*
This page took 0.055377 seconds and 4 git commands to generate.