diff options
Diffstat (limited to 'include/linux/tick.h')
-rw-r--r-- | include/linux/tick.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/tick.h b/include/linux/tick.h index 4f9ba058abdb..25d0cf41d3fd 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -43,6 +43,7 @@ enum tick_nohz_mode { | |||
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 | * @sleep_length: Duration of the current idle sleep | 45 | * @sleep_length: Duration of the current idle sleep |
46 | * @do_timer_lst: CPU was the last one doing do_timer before going idle | ||
46 | */ | 47 | */ |
47 | struct tick_sched { | 48 | struct tick_sched { |
48 | struct hrtimer sched_timer; | 49 | struct hrtimer sched_timer; |
@@ -64,6 +65,7 @@ struct tick_sched { | |||
64 | unsigned long last_jiffies; | 65 | unsigned long last_jiffies; |
65 | unsigned long next_jiffies; | 66 | unsigned long next_jiffies; |
66 | ktime_t idle_expires; | 67 | ktime_t idle_expires; |
68 | int do_timer_last; | ||
67 | }; | 69 | }; |
68 | 70 | ||
69 | extern void __init tick_init(void); | 71 | extern void __init tick_init(void); |
@@ -103,6 +105,9 @@ extern int tick_check_oneshot_change(int allow_nohz); | |||
103 | extern struct tick_sched *tick_get_tick_sched(int cpu); | 105 | extern struct tick_sched *tick_get_tick_sched(int cpu); |
104 | extern void tick_check_idle(int cpu); | 106 | extern void tick_check_idle(int cpu); |
105 | extern int tick_oneshot_mode_active(void); | 107 | extern int tick_oneshot_mode_active(void); |
108 | # ifndef arch_needs_cpu | ||
109 | # define arch_needs_cpu(cpu) (0) | ||
110 | # endif | ||
106 | # else | 111 | # else |
107 | static inline void tick_clock_notify(void) { } | 112 | static inline void tick_clock_notify(void) { } |
108 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } | 113 | static inline int tick_check_oneshot_change(int allow_nohz) { return 0; } |