diff options
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r-- | kernel/time/tick-sched.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 40420644d0ba..31cc06163ed5 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -297,6 +297,15 @@ void tick_nohz_stop_sched_tick(int inidle) | |||
297 | ts = &per_cpu(tick_cpu_sched, cpu); | 297 | ts = &per_cpu(tick_cpu_sched, cpu); |
298 | 298 | ||
299 | /* | 299 | /* |
300 | * Update the idle state in the scheduler domain hierarchy | ||
301 | * when tick_nohz_stop_sched_tick() is called from the idle loop. | ||
302 | * State will be updated to busy during the first busy tick after | ||
303 | * exiting idle. | ||
304 | */ | ||
305 | if (inidle) | ||
306 | set_cpu_sd_state_idle(); | ||
307 | |||
308 | /* | ||
300 | * Call to tick_nohz_start_idle stops the last_update_time from being | 309 | * Call to tick_nohz_start_idle stops the last_update_time from being |
301 | * updated. Thus, it must not be called in the event we are called from | 310 | * updated. Thus, it must not be called in the event we are called from |
302 | * irq_exit() with the prior state different than idle. | 311 | * irq_exit() with the prior state different than idle. |