time: Change the return type of clockevents_notify() to integer
[firefly-linux-kernel-4.4.55.git] / kernel / time / tick-broadcast.c
index 0cb9d86c9bdf1d16c1a3655fc1f92d6f4fd6c157..ed01fe1104eed7b7719268089d22a8e9ed31c678 100644 (file)
@@ -549,14 +549,15 @@ again:
 /*
  * Powerstate information: The system enters/leaves a state, where
  * affected devices might stop
+ * Returns 0 on success, -EBUSY if the cpu is used to broadcast wakeups.
  */
-void tick_broadcast_oneshot_control(unsigned long reason)
+int tick_broadcast_oneshot_control(unsigned long reason)
 {
        struct clock_event_device *bc, *dev;
        struct tick_device *td;
        unsigned long flags;
        ktime_t now;
-       int cpu;
+       int cpu, ret = 0;
 
        /*
         * Periodic mode does not care about the enter/exit of power
@@ -662,6 +663,7 @@ void tick_broadcast_oneshot_control(unsigned long reason)
        }
 out:
        raw_spin_unlock_irqrestore(&tick_broadcast_lock, flags);
+       return ret;
 }
 
 /*