summaryrefslogtreecommitdiffstats
path: root/kernel/time/tick-broadcast.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-05-24 23:18:18 +0100
committerThomas Gleixner <tglx@linutronix.de>2021-05-31 17:04:49 +0200
commit245a057fee18be08d6ac12357463579d06bea077 (patch)
tree99579a822b53ba7b0696fc775ccb9712d571bb79 /kernel/time/tick-broadcast.c
parentea5c7f1b9aa1a7c9d1bb9440084ac1256789fadb (diff)
downloadlinux-stable-245a057fee18be08d6ac12357463579d06bea077.tar.gz
linux-stable-245a057fee18be08d6ac12357463579d06bea077.tar.bz2
linux-stable-245a057fee18be08d6ac12357463579d06bea077.zip
timer_list: Print name of per-cpu wakeup device
With the introduction of per-cpu wakeup devices that can be used in preference to the broadcast timer, print the name of such devices when they are available. Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210524221818.15850-6-will@kernel.org
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r--kernel/time/tick-broadcast.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index 9b845212430b..f7fe6fe36173 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -63,6 +63,13 @@ struct cpumask *tick_get_broadcast_mask(void)
return tick_broadcast_mask;
}
+static struct clock_event_device *tick_get_oneshot_wakeup_device(int cpu);
+
+const struct clock_event_device *tick_get_wakeup_device(int cpu)
+{
+ return tick_get_oneshot_wakeup_device(cpu);
+}
+
/*
* Start the device in periodic mode
*/