tick: Provide a check for a forced broadcast pending
[deliverable/linux.git] / kernel / time / tick-broadcast.c
index 2100aad6b5f28575d4f571686ce6d28bfb22c10e..d76d816afc5d148f03dc321286f46f52cd11ddbe 100644 (file)
@@ -403,6 +403,18 @@ struct cpumask *tick_get_broadcast_oneshot_mask(void)
        return tick_broadcast_oneshot_mask;
 }
 
+/*
+ * Called before going idle with interrupts disabled. Checks whether a
+ * broadcast event from the other core is about to happen. We detected
+ * that in tick_broadcast_oneshot_control(). The callsite can use this
+ * to avoid a deep idle transition as we are about to get the
+ * broadcast IPI right away.
+ */
+int tick_check_broadcast_expired(void)
+{
+       return cpumask_test_cpu(smp_processor_id(), tick_broadcast_force_mask);
+}
+
 /*
  * Set broadcast interrupt affinity
  */
This page took 0.024978 seconds and 5 git commands to generate.