aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-03-25 08:09:16 -0400
committerIngo Molnar <mingo@kernel.org>2015-04-01 08:22:59 -0400
commit4ffee521f36390c7720d493591b764ca35c8030b (patch)
tree9836af97487f83a0680c293f187cd116875ec2c5 /include
parentdb6f672ef11d7a3c5aa128a3c3e57c92580a25f7 (diff)
clockevents: Make suspend/resume calls explicit
clockevents_notify() is a leftover from the early design of the clockevents facility. It's really not a notification mechanism, it's a multiplex call. We are way better off to have explicit calls instead of this monstrosity. Split out the suspend/resume() calls and invoke them directly from the call sites. No locking required at this point because these calls happen with interrupts disabled and a single cpu online. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> [ Rebased on top of 4.0-rc5. ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/713674030.jVm1qaHuPf@vostro.rjw.lan [ Rebased on top of latest timers/core. ] Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clockchips.h2
-rw-r--r--include/linux/tick.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h
index bc3af821350b..50ce9750754f 100644
--- a/include/linux/clockchips.h
+++ b/include/linux/clockchips.h
@@ -16,8 +16,6 @@ enum clock_event_nofitiers {
16 CLOCK_EVT_NOTIFY_BROADCAST_FORCE, 16 CLOCK_EVT_NOTIFY_BROADCAST_FORCE,
17 CLOCK_EVT_NOTIFY_BROADCAST_ENTER, 17 CLOCK_EVT_NOTIFY_BROADCAST_ENTER,
18 CLOCK_EVT_NOTIFY_BROADCAST_EXIT, 18 CLOCK_EVT_NOTIFY_BROADCAST_EXIT,
19 CLOCK_EVT_NOTIFY_SUSPEND,
20 CLOCK_EVT_NOTIFY_RESUME,
21 CLOCK_EVT_NOTIFY_CPU_DYING, 19 CLOCK_EVT_NOTIFY_CPU_DYING,
22 CLOCK_EVT_NOTIFY_CPU_DEAD, 20 CLOCK_EVT_NOTIFY_CPU_DEAD,
23}; 21};
diff --git a/include/linux/tick.h b/include/linux/tick.h
index f9a2d2687a46..7e07e0e3d898 100644
--- a/include/linux/tick.h
+++ b/include/linux/tick.h
@@ -29,10 +29,13 @@ extern struct tick_device *tick_get_device(int cpu);
29extern void __init tick_init(void); 29extern void __init tick_init(void);
30extern void tick_freeze(void); 30extern void tick_freeze(void);
31extern void tick_unfreeze(void); 31extern void tick_unfreeze(void);
32/* Should be core only, but XEN resume magic abuses this interface */
33extern void tick_resume(void);
32#else /* CONFIG_GENERIC_CLOCKEVENTS */ 34#else /* CONFIG_GENERIC_CLOCKEVENTS */
33static inline void tick_init(void) { } 35static inline void tick_init(void) { }
34static inline void tick_freeze(void) { } 36static inline void tick_freeze(void) { }
35static inline void tick_unfreeze(void) { } 37static inline void tick_unfreeze(void) { }
38static inline void tick_resume(void) { }
36#endif /* !CONFIG_GENERIC_CLOCKEVENTS */ 39#endif /* !CONFIG_GENERIC_CLOCKEVENTS */
37 40
38#ifdef CONFIG_TICK_ONESHOT 41#ifdef CONFIG_TICK_ONESHOT