Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 82005
b: refs/heads/master
c: 5df7fa1
h: refs/heads/master
i:
  82003: da374fb
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Feb 1, 2008
1 parent 3c7485e commit 0db4a2a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1001d0a9ee74a468077dfd4da0565174e88de26b
refs/heads/master: 5df7fa1c62146a0933767d040d400013310dbcc7
4 changes: 4 additions & 0 deletions trunk/include/linux/tick.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ enum tick_nohz_mode {
* @idle_calls: Total number of idle calls
* @idle_sleeps: Number of idle calls, where the sched tick was stopped
* @idle_entrytime: Time when the idle call was entered
* @idle_waketime: Time when the idle was interrupted
* @idle_exittime: Time when the idle state was left
* @idle_sleeptime: Sum of the time slept in idle with sched tick stopped
* @sleep_length: Duration of the current idle sleep
*/
Expand All @@ -53,6 +55,8 @@ struct tick_sched {
unsigned long idle_sleeps;
int idle_active;
ktime_t idle_entrytime;
ktime_t idle_waketime;
ktime_t idle_exittime;
ktime_t idle_sleeptime;
ktime_t idle_lastupdate;
ktime_t sleep_length;
Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/time/tick-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ void tick_nohz_update_jiffies(void)

cpu_clear(cpu, nohz_cpu_mask);
now = ktime_get();
ts->idle_waketime = now;

local_irq_save(flags);
tick_do_update_jiffies64(now);
Expand Down Expand Up @@ -400,6 +401,7 @@ void tick_nohz_restart_sched_tick(void)
* Cancel the scheduled timer and restore the tick
*/
ts->tick_stopped = 0;
ts->idle_exittime = now;
hrtimer_cancel(&ts->sched_timer);
ts->sched_timer.expires = ts->idle_tick;

Expand Down
2 changes: 2 additions & 0 deletions trunk/kernel/time/timer_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ static void print_cpu(struct seq_file *m, int cpu, u64 now)
P(idle_calls);
P(idle_sleeps);
P_ns(idle_entrytime);
P_ns(idle_waketime);
P_ns(idle_exittime);
P_ns(idle_sleeptime);
P(last_jiffies);
P(next_jiffies);
Expand Down

0 comments on commit 0db4a2a

Please sign in to comment.