diff options
author | Joonwoo Park <joonwoop@codeaurora.org> | 2015-04-27 22:21:49 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-05-05 04:40:43 -0400 |
commit | 781978e6e156101209f62b9ebc8783b70ef248de (patch) | |
tree | d2f8286d9e396294abe3bcd782cefd03dcf4afb5 /kernel/time/timer.c | |
parent | 9fa8cc0a85c774b75218ba5f385792be387c190b (diff) |
timer: Use timer->base for flag checks
At present, internal_add_timer() examines flags with 'base' which doesn't
contain flags. Examine with 'timer->base' to avoid unnecessary waking up
of nohz CPU when timer base has TIMER_DEFERRABLE set.
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Cc: sboyd@codeaurora.org
Cc: skannan@codeaurora.org
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/1430187709-21087-1-git-send-email-joonwoop@codeaurora.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time/timer.c')
-rw-r--r-- | kernel/time/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 03f926c7a8ee..d4af7c56c95d 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c | |||
@@ -436,7 +436,7 @@ static void internal_add_timer(struct tvec_base *base, struct timer_list *timer) | |||
436 | * require special care against races with idle_cpu(), lets deal | 436 | * require special care against races with idle_cpu(), lets deal |
437 | * with that later. | 437 | * with that later. |
438 | */ | 438 | */ |
439 | if (!tbase_get_deferrable(base) || tick_nohz_full_cpu(base->cpu)) | 439 | if (!tbase_get_deferrable(timer->base) || tick_nohz_full_cpu(base->cpu)) |
440 | wake_up_nohz_cpu(base->cpu); | 440 | wake_up_nohz_cpu(base->cpu); |
441 | } | 441 | } |
442 | 442 | ||