diff options
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r-- | include/linux/tick.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index 25d0cf41d3fd..1e29bd5b18af 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -42,6 +42,7 @@ enum tick_nohz_mode { | |||
42 | * @idle_waketime: Time when the idle was interrupted | 42 | * @idle_waketime: Time when the idle was interrupted |
43 | * @idle_exittime: Time when the idle state was left | 43 | * @idle_exittime: Time when the idle state was left |
44 | * @idle_sleeptime: Sum of the time slept in idle with sched tick stopped | 44 | * @idle_sleeptime: Sum of the time slept in idle with sched tick stopped |
45 | * @iowait_sleeptime: Sum of the time slept in idle with sched tick stopped, with IO outstanding | ||
45 | * @sleep_length: Duration of the current idle sleep | 46 | * @sleep_length: Duration of the current idle sleep |
46 | * @do_timer_lst: CPU was the last one doing do_timer before going idle | 47 | * @do_timer_lst: CPU was the last one doing do_timer before going idle |
47 | */ | 48 | */ |
@@ -60,7 +61,7 @@ struct tick_sched { | |||
60 | ktime_t idle_waketime; | 61 | ktime_t idle_waketime; |
61 | ktime_t idle_exittime; | 62 | ktime_t idle_exittime; |
62 | ktime_t idle_sleeptime; | 63 | ktime_t idle_sleeptime; |
63 | ktime_t idle_lastupdate; | 64 | ktime_t iowait_sleeptime; |
64 | ktime_t sleep_length; | 65 | ktime_t sleep_length; |
65 | unsigned long last_jiffies; | 66 | unsigned long last_jiffies; |
66 | unsigned long next_jiffies; | 67 | unsigned long next_jiffies; |
@@ -129,6 +130,7 @@ extern void tick_nohz_stop_sched_tick(int inidle); | |||
129 | extern void tick_nohz_restart_sched_tick(void); | 130 | extern void tick_nohz_restart_sched_tick(void); |
130 | extern ktime_t tick_nohz_get_sleep_length(void); | 131 | extern ktime_t tick_nohz_get_sleep_length(void); |
131 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); | 132 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); |
133 | extern u64 get_cpu_iowait_time_us(int cpu, u64 *last_update_time); | ||
132 | # else | 134 | # else |
133 | static inline void tick_nohz_stop_sched_tick(int inidle) { } | 135 | static inline void tick_nohz_stop_sched_tick(int inidle) { } |
134 | static inline void tick_nohz_restart_sched_tick(void) { } | 136 | static inline void tick_nohz_restart_sched_tick(void) { } |
@@ -139,6 +141,7 @@ static inline ktime_t tick_nohz_get_sleep_length(void) | |||
139 | return len; | 141 | return len; |
140 | } | 142 | } |
141 | static inline u64 get_cpu_idle_time_us(int cpu, u64 *unused) { return -1; } | 143 | static inline u64 get_cpu_idle_time_us(int cpu, u64 *unused) { return -1; } |
144 | static inline u64 get_cpu_iowait_time_us(int cpu, u64 *unused) { return -1; } | ||
142 | # endif /* !NO_HZ */ | 145 | # endif /* !NO_HZ */ |
143 | 146 | ||
144 | #endif | 147 | #endif |