diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-10-18 06:04:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 17:37:18 -0400 |
commit | b3dac3b304bdfbb06e92b0d4bba9ecab006795e6 (patch) | |
tree | 850b1162febb536b2ae31d1ff10378057322aa7a | |
parent | 74f270af0c1ed5b9d4413784256959dcfe3593ce (diff) |
PM: Rename hibernation_ops to platform_hibernation_ops
Rename 'struct hibernation_ops' to 'struct platform_hibernation_ops' in
analogy with 'struct platform_suspend_ops'.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/acpi/sleep/main.c | 2 | ||||
-rw-r--r-- | include/linux/suspend.h | 8 | ||||
-rw-r--r-- | kernel/power/disk.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c index f20b0ab9ef54..acfb01b8ec82 100644 --- a/drivers/acpi/sleep/main.c +++ b/drivers/acpi/sleep/main.c | |||
@@ -282,7 +282,7 @@ static void acpi_hibernation_restore_cleanup(void) | |||
282 | acpi_hw_enable_all_runtime_gpes(); | 282 | acpi_hw_enable_all_runtime_gpes(); |
283 | } | 283 | } |
284 | 284 | ||
285 | static struct hibernation_ops acpi_hibernation_ops = { | 285 | static struct platform_hibernation_ops acpi_hibernation_ops = { |
286 | .start = acpi_hibernation_start, | 286 | .start = acpi_hibernation_start, |
287 | .pre_snapshot = acpi_hibernation_prepare, | 287 | .pre_snapshot = acpi_hibernation_prepare, |
288 | .finish = acpi_hibernation_finish, | 288 | .finish = acpi_hibernation_finish, |
diff --git a/include/linux/suspend.h b/include/linux/suspend.h index 0044483dd477..9fd2b9acf7d9 100644 --- a/include/linux/suspend.h +++ b/include/linux/suspend.h | |||
@@ -127,7 +127,7 @@ extern void drain_local_pages(void); | |||
127 | extern void mark_free_pages(struct zone *zone); | 127 | extern void mark_free_pages(struct zone *zone); |
128 | 128 | ||
129 | /** | 129 | /** |
130 | * struct hibernation_ops - hibernation platform support | 130 | * struct platform_hibernation_ops - hibernation platform support |
131 | * | 131 | * |
132 | * The methods in this structure allow a platform to override the default | 132 | * The methods in this structure allow a platform to override the default |
133 | * mechanism of shutting down the machine during a hibernation transition. | 133 | * mechanism of shutting down the machine during a hibernation transition. |
@@ -164,7 +164,7 @@ extern void mark_free_pages(struct zone *zone); | |||
164 | * Called right after the nonboot CPUs have been enabled and before | 164 | * Called right after the nonboot CPUs have been enabled and before |
165 | * thawing devices (runs with IRQs on). | 165 | * thawing devices (runs with IRQs on). |
166 | */ | 166 | */ |
167 | struct hibernation_ops { | 167 | struct platform_hibernation_ops { |
168 | int (*start)(void); | 168 | int (*start)(void); |
169 | int (*pre_snapshot)(void); | 169 | int (*pre_snapshot)(void); |
170 | void (*finish)(void); | 170 | void (*finish)(void); |
@@ -190,14 +190,14 @@ extern void swsusp_set_page_free(struct page *); | |||
190 | extern void swsusp_unset_page_free(struct page *); | 190 | extern void swsusp_unset_page_free(struct page *); |
191 | extern unsigned long get_safe_page(gfp_t gfp_mask); | 191 | extern unsigned long get_safe_page(gfp_t gfp_mask); |
192 | 192 | ||
193 | extern void hibernation_set_ops(struct hibernation_ops *ops); | 193 | extern void hibernation_set_ops(struct platform_hibernation_ops *ops); |
194 | extern int hibernate(void); | 194 | extern int hibernate(void); |
195 | #else /* CONFIG_HIBERNATION */ | 195 | #else /* CONFIG_HIBERNATION */ |
196 | static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } | 196 | static inline int swsusp_page_is_forbidden(struct page *p) { return 0; } |
197 | static inline void swsusp_set_page_free(struct page *p) {} | 197 | static inline void swsusp_set_page_free(struct page *p) {} |
198 | static inline void swsusp_unset_page_free(struct page *p) {} | 198 | static inline void swsusp_unset_page_free(struct page *p) {} |
199 | 199 | ||
200 | static inline void hibernation_set_ops(struct hibernation_ops *ops) {} | 200 | static inline void hibernation_set_ops(struct platform_hibernation_ops *ops) {} |
201 | static inline int hibernate(void) { return -ENOSYS; } | 201 | static inline int hibernate(void) { return -ENOSYS; } |
202 | #endif /* CONFIG_HIBERNATION */ | 202 | #endif /* CONFIG_HIBERNATION */ |
203 | 203 | ||
diff --git a/kernel/power/disk.c b/kernel/power/disk.c index d17bb14bce7b..9348d95a4fb8 100644 --- a/kernel/power/disk.c +++ b/kernel/power/disk.c | |||
@@ -45,14 +45,14 @@ enum { | |||
45 | 45 | ||
46 | static int hibernation_mode = HIBERNATION_SHUTDOWN; | 46 | static int hibernation_mode = HIBERNATION_SHUTDOWN; |
47 | 47 | ||
48 | static struct hibernation_ops *hibernation_ops; | 48 | static struct platform_hibernation_ops *hibernation_ops; |
49 | 49 | ||
50 | /** | 50 | /** |
51 | * hibernation_set_ops - set the global hibernate operations | 51 | * hibernation_set_ops - set the global hibernate operations |
52 | * @ops: the hibernation operations to use in subsequent hibernation transitions | 52 | * @ops: the hibernation operations to use in subsequent hibernation transitions |
53 | */ | 53 | */ |
54 | 54 | ||
55 | void hibernation_set_ops(struct hibernation_ops *ops) | 55 | void hibernation_set_ops(struct platform_hibernation_ops *ops) |
56 | { | 56 | { |
57 | if (ops && !(ops->start && ops->pre_snapshot && ops->finish | 57 | if (ops && !(ops->start && ops->pre_snapshot && ops->finish |
58 | && ops->prepare && ops->enter && ops->pre_restore | 58 | && ops->prepare && ops->enter && ops->pre_restore |