Skip to content

Commit

Permalink
Revert "nohz: Make tick_nohz_irq_exit() irq safe"
Browse files Browse the repository at this point in the history
This reverts commit 351429b2e62b6545bb10c756686393f29ba268a1. The
extra local_irq_save() is not longer needed as the call site now
always calls with interrupts disabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Linus Torvalds <torvalds@linuxfoundation.org>
  • Loading branch information
Thomas Gleixner committed Feb 21, 2013
1 parent facd8b8 commit af7bdba
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,19 +565,14 @@ void tick_nohz_idle_enter(void)
*/
void tick_nohz_irq_exit(void)
{
unsigned long flags;
struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched);

if (!ts->inidle)
return;

local_irq_save(flags);

/* Cancel the timer because CPU already waken up from the C-states */
/* Cancel the timer because CPU already waken up from the C-states*/
menu_hrtimer_cancel();
__tick_nohz_idle_enter(ts);

local_irq_restore(flags);
}

/**
Expand Down

0 comments on commit af7bdba

Please sign in to comment.