diff options
Diffstat (limited to 'kernel/time/tick-broadcast.c')
-rw-r--r-- | kernel/time/tick-broadcast.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 48b2761b5668..da800ffa810c 100644 --- a/kernel/time/tick-broadcast.c +++ b/kernel/time/tick-broadcast.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <linux/percpu.h> | 18 | #include <linux/percpu.h> |
19 | #include <linux/profile.h> | 19 | #include <linux/profile.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/tick.h> | ||
22 | 21 | ||
23 | #include "tick-internal.h" | 22 | #include "tick-internal.h" |
24 | 23 | ||
@@ -600,4 +599,14 @@ int tick_broadcast_oneshot_active(void) | |||
600 | return tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT; | 599 | return tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT; |
601 | } | 600 | } |
602 | 601 | ||
602 | /* | ||
603 | * Check whether the broadcast device supports oneshot. | ||
604 | */ | ||
605 | bool tick_broadcast_oneshot_available(void) | ||
606 | { | ||
607 | struct clock_event_device *bc = tick_broadcast_device.evtdev; | ||
608 | |||
609 | return bc ? bc->features & CLOCK_EVT_FEAT_ONESHOT : false; | ||
610 | } | ||
611 | |||
603 | #endif | 612 | #endif |