diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-03-25 12:07:31 +0530 |
---|---|---|
committer | Gary S. Robertson <gary.robertson@linaro.org> | 2015-07-22 16:17:07 -0500 |
commit | a7555d56984fbaf41080ca7cf1b01054c5286022 (patch) | |
tree | dc4887f585e75eb9d159a6745b2a5120cc037c55 /include/linux/hrtimer.h | |
parent | 169b6b4865eb02c25468c177351b98c3cc8ad8bf (diff) |
hrtimer: create hrtimer_quiesce_cpu() to isolate CPU from hrtimers
To isolate CPUs (isolate from hrtimers) from sysfs using cpusets, we need some
support from the hrtimer core. i.e. A routine hrtimer_quiesce_cpu() which would
migrate away all the unpinned hrtimers, but shouldn't touch the pinned ones.
This patch creates this routine.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
[forward port to 3.18]
Signed-off-by: Santosh Shukla <santosh.shukla@linaro.org>
Diffstat (limited to 'include/linux/hrtimer.h')
-rw-r--r-- | include/linux/hrtimer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/hrtimer.h b/include/linux/hrtimer.h index ac8925979df5..d62e60a6bbe0 100644 --- a/include/linux/hrtimer.h +++ b/include/linux/hrtimer.h @@ -343,6 +343,9 @@ DECLARE_PER_CPU(struct tick_device, tick_cpu_device); /* Exported timer functions: */ +/* To be used from cpusets, only */ +extern void hrtimer_quiesce_cpu(void *cpup); + /* Initialize timers: */ extern void hrtimer_init(struct hrtimer *timer, clockid_t which_clock, enum hrtimer_mode mode); |