|
@@ -908,10 +908,11 @@ static void __tick_nohz_idle_enter(struct tick_sched *ts)
|
|
|
ktime_t now, expires;
|
|
|
int cpu = smp_processor_id();
|
|
|
|
|
|
+ now = tick_nohz_start_idle(ts);
|
|
|
+
|
|
|
if (can_stop_idle_tick(cpu, ts)) {
|
|
|
int was_stopped = ts->tick_stopped;
|
|
|
|
|
|
- now = tick_nohz_start_idle(ts);
|
|
|
ts->idle_calls++;
|
|
|
|
|
|
expires = tick_nohz_stop_sched_tick(ts, now, cpu);
|