summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-25 16:41:49 +0100
committerThomas Gleixner <tglx@linutronix.de>2016-01-26 16:26:06 +0100
commit7809998ab1af22602a8463845108edc49dfb9ef0 (patch)
treeec37067a880f55946043e4bed06d2d0aa0f7a738 /drivers/clocksource
parente03a58c320e1103ebe97bda8ebdfcc5c9829c53f (diff)
downloadblackbird-op-linux-7809998ab1af22602a8463845108edc49dfb9ef0.tar.gz
blackbird-op-linux-7809998ab1af22602a8463845108edc49dfb9ef0.zip
tick/sched: Hide unused oneshot timer code
A couple of functions in kernel/time/tick-sched.c are only relevant for oneshot timer mode, i.e. when hires-timers or nohz mode are enabled. If both are disabled, we get gcc warnings about them: kernel/time/tick-sched.c:98:16: warning: 'tick_init_jiffy_update' defined but not used [-Wunused-function] static ktime_t tick_init_jiffy_update(void) ^ kernel/time/tick-sched.c:112:13: warning: 'tick_sched_do_timer' defined but not used [-Wunused-function] static void tick_sched_do_timer(ktime_t now) ^ kernel/time/tick-sched.c:134:13: warning: 'tick_sched_handle' defined but not used [-Wunused-function] static void tick_sched_handle(struct tick_sched *ts, struct pt_regs *regs) ^ This encloses the whole set of functions in an appropriate ifdef to avoid the warning and to make it clearer when they are used. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1453736525-1959191-1-git-send-email-arnd@arndb.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud