diff options
-rw-r--r-- | include/linux/tick.h | 8 | ||||
-rw-r--r-- | kernel/time/tick-sched.c | 4 | ||||
-rw-r--r-- | kernel/time/timer_list.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index ab8be90b5cc9..f37fceb69b73 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -31,10 +31,10 @@ enum tick_nohz_mode { | |||
31 | * struct tick_sched - sched tick emulation and no idle tick control/stats | 31 | * struct tick_sched - sched tick emulation and no idle tick control/stats |
32 | * @sched_timer: hrtimer to schedule the periodic tick in high | 32 | * @sched_timer: hrtimer to schedule the periodic tick in high |
33 | * resolution mode | 33 | * resolution mode |
34 | * @idle_tick: Store the last idle tick expiry time when the tick | 34 | * @last_tick: Store the last tick expiry time when the tick |
35 | * timer is modified for idle sleeps. This is necessary | 35 | * timer is modified for nohz sleeps. This is necessary |
36 | * to resume the tick timer operation in the timeline | 36 | * to resume the tick timer operation in the timeline |
37 | * when the CPU returns from idle | 37 | * when the CPU returns from nohz sleep. |
38 | * @tick_stopped: Indicator that the idle tick has been stopped | 38 | * @tick_stopped: Indicator that the idle tick has been stopped |
39 | * @idle_jiffies: jiffies at the entry to idle for idle time accounting | 39 | * @idle_jiffies: jiffies at the entry to idle for idle time accounting |
40 | * @idle_calls: Total number of idle calls | 40 | * @idle_calls: Total number of idle calls |
@@ -51,7 +51,7 @@ struct tick_sched { | |||
51 | struct hrtimer sched_timer; | 51 | struct hrtimer sched_timer; |
52 | unsigned long check_clocks; | 52 | unsigned long check_clocks; |
53 | enum tick_nohz_mode nohz_mode; | 53 | enum tick_nohz_mode nohz_mode; |
54 | ktime_t idle_tick; | 54 | ktime_t last_tick; |
55 | int inidle; | 55 | int inidle; |
56 | int tick_stopped; | 56 | int tick_stopped; |
57 | unsigned long idle_jiffies; | 57 | unsigned long idle_jiffies; |
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 911834b33b8a..73cc4901336d 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -400,7 +400,7 @@ static void tick_nohz_stop_sched_tick(struct tick_sched *ts, ktime_t now) | |||
400 | if (!ts->tick_stopped) { | 400 | if (!ts->tick_stopped) { |
401 | select_nohz_load_balancer(1); | 401 | select_nohz_load_balancer(1); |
402 | 402 | ||
403 | ts->idle_tick = hrtimer_get_expires(&ts->sched_timer); | 403 | ts->last_tick = hrtimer_get_expires(&ts->sched_timer); |
404 | ts->tick_stopped = 1; | 404 | ts->tick_stopped = 1; |
405 | } | 405 | } |
406 | 406 | ||
@@ -526,7 +526,7 @@ ktime_t tick_nohz_get_sleep_length(void) | |||
526 | static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) | 526 | static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) |
527 | { | 527 | { |
528 | hrtimer_cancel(&ts->sched_timer); | 528 | hrtimer_cancel(&ts->sched_timer); |
529 | hrtimer_set_expires(&ts->sched_timer, ts->idle_tick); | 529 | hrtimer_set_expires(&ts->sched_timer, ts->last_tick); |
530 | 530 | ||
531 | while (1) { | 531 | while (1) { |
532 | /* Forward the time to expire in the future */ | 532 | /* Forward the time to expire in the future */ |
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index 3258455549f4..af5a7e9f164b 100644 --- a/kernel/time/timer_list.c +++ b/kernel/time/timer_list.c | |||
@@ -167,7 +167,7 @@ static void print_cpu(struct seq_file *m, int cpu, u64 now) | |||
167 | { | 167 | { |
168 | struct tick_sched *ts = tick_get_tick_sched(cpu); | 168 | struct tick_sched *ts = tick_get_tick_sched(cpu); |
169 | P(nohz_mode); | 169 | P(nohz_mode); |
170 | P_ns(idle_tick); | 170 | P_ns(last_tick); |
171 | P(tick_stopped); | 171 | P(tick_stopped); |
172 | P(idle_jiffies); | 172 | P(idle_jiffies); |
173 | P(idle_calls); | 173 | P(idle_calls); |
@@ -259,7 +259,7 @@ static int timer_list_show(struct seq_file *m, void *v) | |||
259 | u64 now = ktime_to_ns(ktime_get()); | 259 | u64 now = ktime_to_ns(ktime_get()); |
260 | int cpu; | 260 | int cpu; |
261 | 261 | ||
262 | SEQ_printf(m, "Timer List Version: v0.6\n"); | 262 | SEQ_printf(m, "Timer List Version: v0.7\n"); |
263 | SEQ_printf(m, "HRTIMER_MAX_CLOCK_BASES: %d\n", HRTIMER_MAX_CLOCK_BASES); | 263 | SEQ_printf(m, "HRTIMER_MAX_CLOCK_BASES: %d\n", HRTIMER_MAX_CLOCK_BASES); |
264 | SEQ_printf(m, "now at %Ld nsecs\n", (unsigned long long)now); | 264 | SEQ_printf(m, "now at %Ld nsecs\n", (unsigned long long)now); |
265 | 265 | ||