diff options
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index f9f0d4d26c50..a9732fd12239 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h | |||
@@ -172,14 +172,10 @@ static inline int suspend_devices_and_enter(suspend_state_t state) | |||
172 | } | 172 | } |
173 | #endif /* !CONFIG_SUSPEND */ | 173 | #endif /* !CONFIG_SUSPEND */ |
174 | 174 | ||
175 | /* kernel/power/common.c */ | 175 | #ifdef CONFIG_PM_SLEEP |
176 | extern struct blocking_notifier_head pm_chain_head; | 176 | /* kernel/power/main.c */ |
177 | 177 | extern int pm_notifier_call_chain(unsigned long val); | |
178 | static inline int pm_notifier_call_chain(unsigned long val) | 178 | #endif |
179 | { | ||
180 | return (blocking_notifier_call_chain(&pm_chain_head, val, NULL) | ||
181 | == NOTIFY_BAD) ? -EINVAL : 0; | ||
182 | } | ||
183 | 179 | ||
184 | #ifdef CONFIG_HIGHMEM | 180 | #ifdef CONFIG_HIGHMEM |
185 | unsigned int count_highmem_pages(void); | 181 | unsigned int count_highmem_pages(void); |