|
@@ -84,6 +84,9 @@ static void tick_do_update_jiffies64(ktime_t now)
|
|
|
|
|
|
/* Keep the tick_next_period variable up to date */
|
|
/* Keep the tick_next_period variable up to date */
|
|
tick_next_period = ktime_add(last_jiffies_update, tick_period);
|
|
tick_next_period = ktime_add(last_jiffies_update, tick_period);
|
|
|
|
+ } else {
|
|
|
|
+ write_sequnlock(&jiffies_lock);
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
write_sequnlock(&jiffies_lock);
|
|
write_sequnlock(&jiffies_lock);
|
|
update_wall_time();
|
|
update_wall_time();
|
|
@@ -967,7 +970,7 @@ static void tick_nohz_switch_to_nohz(void)
|
|
struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched);
|
|
struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched);
|
|
ktime_t next;
|
|
ktime_t next;
|
|
|
|
|
|
- if (!tick_nohz_active)
|
|
|
|
|
|
+ if (!tick_nohz_enabled)
|
|
return;
|
|
return;
|
|
|
|
|
|
local_irq_disable();
|
|
local_irq_disable();
|