]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time/tick-broadcast.c
clockevents: prevent mode mismatch on cpu online
[linux-2.6-omap-h63xx.git] / kernel / time / tick-broadcast.c
index e2b66d1c8ca587bb30bfb6a11e90828a6103a5e6..bd7034542399f4badf620dbc5caf94578caf16ea 100644 (file)
@@ -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