diff options
author | Adrian Bunk <bunk@kernel.org> | 2007-11-19 23:36:20 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-01 18:30:53 -0500 |
commit | 2f8ed1c60b06b797bf79a1dc540f0bed8c9d75a0 (patch) | |
tree | bf9157cf84a53b0ee74ba1e2b5bd9417589b9226 /kernel/power/power.h | |
parent | 964756a52f4cf0417d515b7f01eec69db8cb0fe2 (diff) |
Hibernation: Move function prototypes to header
This patch moves the prototypes of count_highmem_pages() and
restore_highmem() to kernel/power/power.h
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/power/power.h')
-rw-r--r-- | kernel/power/power.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/power/power.h b/kernel/power/power.h index ef9060576a4..c5321eb1f7c 100644 --- a/kernel/power/power.h +++ b/kernel/power/power.h @@ -180,3 +180,11 @@ static inline int pm_notifier_call_chain(unsigned long val) return (blocking_notifier_call_chain(&pm_chain_head, val, NULL) == NOTIFY_BAD) ? -EINVAL : 0; } + +#ifdef CONFIG_HIGHMEM +unsigned int count_highmem_pages(void); +int restore_highmem(void); +#else +static inline unsigned int count_highmem_pages(void) { return 0; } +static inline int restore_highmem(void) { return 0; } +#endif |