nohz: Allow to check if remote CPU tick is stopped
[linux-2.6-block.git] / kernel / time / tick-sched.c
index 0aba0412ede585d61196e3e8a30afc499975046f..d479b21a848b456382bb850efbd22ede3c9f0603 100644 (file)
@@ -486,6 +486,13 @@ bool tick_nohz_tick_stopped(void)
        return __this_cpu_read(tick_cpu_sched.tick_stopped);
 }
 
+bool tick_nohz_tick_stopped_cpu(int cpu)
+{
+       struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu);
+
+       return ts->tick_stopped;
+}
+
 /**
  * tick_nohz_update_jiffies - update jiffies when idle was interrupted
  *