diff options
author | Ingo Molnar <mingo@kernel.org> | 2013-04-21 05:05:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-04-21 05:05:47 -0400 |
commit | a166fcf04d848ffa09f0e831805553089f190cf4 (patch) | |
tree | 1fc97c397238692375f1ebf7a39746188f6424db /include | |
parent | 2727872dfe5d273f313f8a0c0dd0fcc58e96cde7 (diff) | |
parent | 555347f6c080d2f25265f981c963605b4dd3610d (diff) |
Merge branch 'timers/nohz-posix-timers-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks into timers/nohz
Pull posix cpu timers handling on full dynticks from Frederic Weisbecker.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/posix-timers.h | 2 | ||||
-rw-r--r-- | include/linux/tick.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/posix-timers.h b/include/linux/posix-timers.h index 042058fdb0af..3698d9d08978 100644 --- a/include/linux/posix-timers.h +++ b/include/linux/posix-timers.h | |||
@@ -122,6 +122,8 @@ void run_posix_cpu_timers(struct task_struct *task); | |||
122 | void posix_cpu_timers_exit(struct task_struct *task); | 122 | void posix_cpu_timers_exit(struct task_struct *task); |
123 | void posix_cpu_timers_exit_group(struct task_struct *task); | 123 | void posix_cpu_timers_exit_group(struct task_struct *task); |
124 | 124 | ||
125 | bool posix_cpu_timers_can_stop_tick(struct task_struct *tsk); | ||
126 | |||
125 | void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx, | 127 | void set_process_cpu_timer(struct task_struct *task, unsigned int clock_idx, |
126 | cputime_t *newval, cputime_t *oldval); | 128 | cputime_t *newval, cputime_t *oldval); |
127 | 129 | ||
diff --git a/include/linux/tick.h b/include/linux/tick.h index 0b6873cbf512..d290168335bc 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h | |||
@@ -160,9 +160,13 @@ static inline u64 get_cpu_iowait_time_us(int cpu, u64 *unused) { return -1; } | |||
160 | #ifdef CONFIG_NO_HZ_FULL | 160 | #ifdef CONFIG_NO_HZ_FULL |
161 | extern void tick_nohz_init(void); | 161 | extern void tick_nohz_init(void); |
162 | extern int tick_nohz_full_cpu(int cpu); | 162 | extern int tick_nohz_full_cpu(int cpu); |
163 | extern void tick_nohz_full_kick(void); | ||
164 | extern void tick_nohz_full_kick_all(void); | ||
163 | #else | 165 | #else |
164 | static inline void tick_nohz_init(void) { } | 166 | static inline void tick_nohz_init(void) { } |
165 | static inline int tick_nohz_full_cpu(int cpu) { return 0; } | 167 | static inline int tick_nohz_full_cpu(int cpu) { return 0; } |
168 | static inline void tick_nohz_full_kick(void) { } | ||
169 | static inline void tick_nohz_full_kick_all(void) { } | ||
166 | #endif | 170 | #endif |
167 | 171 | ||
168 | 172 | ||