aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/suspend.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/suspend.h')
-rw-r--r--include/linux/suspend.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 40280df2a3db..51283e0745b3 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -213,17 +213,8 @@ void save_processor_state(void);
213void restore_processor_state(void); 213void restore_processor_state(void);
214 214
215/* kernel/power/main.c */ 215/* kernel/power/main.c */
216extern struct blocking_notifier_head pm_chain_head; 216extern int register_pm_notifier(struct notifier_block *nb);
217 217extern int unregister_pm_notifier(struct notifier_block *nb);
218static inline int register_pm_notifier(struct notifier_block *nb)
219{
220 return blocking_notifier_chain_register(&pm_chain_head, nb);
221}
222
223static inline int unregister_pm_notifier(struct notifier_block *nb)
224{
225 return blocking_notifier_chain_unregister(&pm_chain_head, nb);
226}
227 218
228#define pm_notifier(fn, pri) { \ 219#define pm_notifier(fn, pri) { \
229 static struct notifier_block fn##_nb = \ 220 static struct notifier_block fn##_nb = \