diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-04-26 13:15:07 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-05-11 15:37:15 -0400 |
commit | 2e711c04dbbf7a7732a3f7073b1fc285d12b369d (patch) | |
tree | dbc06a3fff744144d7937a205a91fd8ce71585d4 /kernel/sys.c | |
parent | f5a592f7d74e38c5007876c731e6bf5580072e63 (diff) |
PM: Remove sysdev suspend, resume and shutdown operations
Since suspend, resume and shutdown operations in struct sysdev_class
and struct sysdev_driver are not used any more, remove them. Also
drop sysdev_suspend(), sysdev_resume() and sysdev_shutdown() used
for executing those operations and modify all of their users
accordingly. This reduces kernel code size quite a bit and reduces
its complexity.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index af468edf096a..f0c10385f30c 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -315,7 +315,6 @@ void kernel_restart_prepare(char *cmd) | |||
315 | blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); | 315 | blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd); |
316 | system_state = SYSTEM_RESTART; | 316 | system_state = SYSTEM_RESTART; |
317 | device_shutdown(); | 317 | device_shutdown(); |
318 | sysdev_shutdown(); | ||
319 | syscore_shutdown(); | 318 | syscore_shutdown(); |
320 | } | 319 | } |
321 | 320 | ||
@@ -354,7 +353,6 @@ static void kernel_shutdown_prepare(enum system_states state) | |||
354 | void kernel_halt(void) | 353 | void kernel_halt(void) |
355 | { | 354 | { |
356 | kernel_shutdown_prepare(SYSTEM_HALT); | 355 | kernel_shutdown_prepare(SYSTEM_HALT); |
357 | sysdev_shutdown(); | ||
358 | syscore_shutdown(); | 356 | syscore_shutdown(); |
359 | printk(KERN_EMERG "System halted.\n"); | 357 | printk(KERN_EMERG "System halted.\n"); |
360 | kmsg_dump(KMSG_DUMP_HALT); | 358 | kmsg_dump(KMSG_DUMP_HALT); |
@@ -374,7 +372,6 @@ void kernel_power_off(void) | |||
374 | if (pm_power_off_prepare) | 372 | if (pm_power_off_prepare) |
375 | pm_power_off_prepare(); | 373 | pm_power_off_prepare(); |
376 | disable_nonboot_cpus(); | 374 | disable_nonboot_cpus(); |
377 | sysdev_shutdown(); | ||
378 | syscore_shutdown(); | 375 | syscore_shutdown(); |
379 | printk(KERN_EMERG "Power down.\n"); | 376 | printk(KERN_EMERG "Power down.\n"); |
380 | kmsg_dump(KMSG_DUMP_POWEROFF); | 377 | kmsg_dump(KMSG_DUMP_POWEROFF); |