diff options
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r-- | include/linux/tick.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index f4a1395e05ff..a881c652f7e9 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -39,6 +39,8 @@ enum tick_nohz_mode { | |||
39 | * @idle_calls: Total number of idle calls | 39 | * @idle_calls: Total number of idle calls |
40 | * @idle_sleeps: Number of idle calls, where the sched tick was stopped | 40 | * @idle_sleeps: Number of idle calls, where the sched tick was stopped |
41 | * @idle_entrytime: Time when the idle call was entered | 41 | * @idle_entrytime: Time when the idle call was entered |
42 | * @idle_waketime: Time when the idle was interrupted | ||
43 | * @idle_exittime: Time when the idle state was left | ||
42 | * @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 |
43 | * @sleep_length: Duration of the current idle sleep | 45 | * @sleep_length: Duration of the current idle sleep |
44 | */ | 46 | */ |
@@ -51,8 +53,12 @@ struct tick_sched { | |||
51 | unsigned long idle_jiffies; | 53 | unsigned long idle_jiffies; |
52 | unsigned long idle_calls; | 54 | unsigned long idle_calls; |
53 | unsigned long idle_sleeps; | 55 | unsigned long idle_sleeps; |
56 | int idle_active; | ||
54 | ktime_t idle_entrytime; | 57 | ktime_t idle_entrytime; |
58 | ktime_t idle_waketime; | ||
59 | ktime_t idle_exittime; | ||
55 | ktime_t idle_sleeptime; | 60 | ktime_t idle_sleeptime; |
61 | ktime_t idle_lastupdate; | ||
56 | ktime_t sleep_length; | 62 | ktime_t sleep_length; |
57 | unsigned long last_jiffies; | 63 | unsigned long last_jiffies; |
58 | unsigned long next_jiffies; | 64 | unsigned long next_jiffies; |
@@ -103,6 +109,8 @@ extern void tick_nohz_stop_sched_tick(void); | |||
103 | extern void tick_nohz_restart_sched_tick(void); | 109 | extern void tick_nohz_restart_sched_tick(void); |
104 | extern void tick_nohz_update_jiffies(void); | 110 | extern void tick_nohz_update_jiffies(void); |
105 | extern ktime_t tick_nohz_get_sleep_length(void); | 111 | extern ktime_t tick_nohz_get_sleep_length(void); |
112 | extern void tick_nohz_stop_idle(int cpu); | ||
113 | extern u64 get_cpu_idle_time_us(int cpu, u64 *last_update_time); | ||
106 | # else | 114 | # else |
107 | static inline void tick_nohz_stop_sched_tick(void) { } | 115 | static inline void tick_nohz_stop_sched_tick(void) { } |
108 | static inline void tick_nohz_restart_sched_tick(void) { } | 116 | static inline void tick_nohz_restart_sched_tick(void) { } |
@@ -113,6 +121,8 @@ static inline ktime_t tick_nohz_get_sleep_length(void) | |||
113 | 121 | ||
114 | return len; | 122 | return len; |
115 | } | 123 | } |
124 | static inline void tick_nohz_stop_idle(int cpu) { } | ||
125 | static inline u64 get_cpu_idle_time_us(int cpu, u64 *unused) { return 0; } | ||
116 | # endif /* !NO_HZ */ | 126 | # endif /* !NO_HZ */ |
117 | 127 | ||
118 | #endif | 128 | #endif |