diff options
Diffstat (limited to 'kernel/time/tick-common.c')
-rw-r--r-- | kernel/time/tick-common.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c index c35d449be031..4500e347f1bb 100644 --- a/kernel/time/tick-common.c +++ b/kernel/time/tick-common.c | |||
@@ -34,6 +34,14 @@ ktime_t tick_period; | |||
34 | static int tick_do_timer_cpu = -1; | 34 | static int tick_do_timer_cpu = -1; |
35 | DEFINE_SPINLOCK(tick_device_lock); | 35 | DEFINE_SPINLOCK(tick_device_lock); |
36 | 36 | ||
37 | /* | ||
38 | * Debugging: see timer_list.c | ||
39 | */ | ||
40 | struct tick_device *tick_get_device(int cpu) | ||
41 | { | ||
42 | return &per_cpu(tick_cpu_device, cpu); | ||
43 | } | ||
44 | |||
37 | /** | 45 | /** |
38 | * tick_is_oneshot_available - check for a oneshot capable event device | 46 | * tick_is_oneshot_available - check for a oneshot capable event device |
39 | */ | 47 | */ |