projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clockevents: prevent mode mismatch on cpu online
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
time
/
tick-broadcast.c
diff --git
a/kernel/time/tick-broadcast.c
b/kernel/time/tick-broadcast.c
index e2b66d1c8ca587bb30bfb6a11e90828a6103a5e6..bd7034542399f4badf620dbc5caf94578caf16ea 100644
(file)
--- a/
kernel/time/tick-broadcast.c
+++ b/
kernel/time/tick-broadcast.c
@@
-575,4
+575,12
@@
void tick_shutdown_broadcast_oneshot(unsigned int *cpup)
spin_unlock_irqrestore(&tick_broadcast_lock, flags);
}
+/*
+ * Check, whether the broadcast device is in one shot mode
+ */
+int tick_broadcast_oneshot_active(void)
+{
+ return tick_broadcast_device.mode == TICKDEV_MODE_ONESHOT;
+}
+
#endif