timer: Use timer->base for flag checks
authorJoonwoo Park <joonwoop@codeaurora.org>
Tue, 28 Apr 2015 02:21:49 +0000 (19:21 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 5 May 2015 08:40:43 +0000 (10:40 +0200)
commit781978e6e156101209f62b9ebc8783b70ef248de
treed2f8286d9e396294abe3bcd782cefd03dcf4afb5
parent9fa8cc0a85c774b75218ba5f385792be387c190b
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>
kernel/time/timer.c