Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63006
b: refs/heads/master
c: 58b3b71
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Jul 26, 2007
1 parent ff375b5 commit 973a78f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 602033ed5907a59ce86f709082a35be047743a86
refs/heads/master: 58b3b71dfaaecbf7cff1fe10c049d663f0313e5f
2 changes: 0 additions & 2 deletions trunk/drivers/base/power/shutdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,5 @@ void device_shutdown(void)
dev->driver->shutdown(dev);
}
}

sysdev_shutdown();
}

3 changes: 3 additions & 0 deletions trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,9 @@ extern void put_device(struct device * dev);
/* drivers/base/power/shutdown.c */
extern void device_shutdown(void);

/* drivers/base/sys.c */
extern void sysdev_shutdown(void);


/* drivers/base/firmware.c */
extern int __must_check firmware_register(struct kset *);
Expand Down
1 change: 1 addition & 0 deletions trunk/kernel/power/disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ int hibernation_platform_enter(void)
* sleep state after all
*/
error = hibernation_ops->prepare();
sysdev_shutdown();
if (!error)
error = hibernation_ops->enter();
} else {
Expand Down
3 changes: 3 additions & 0 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ static void kernel_restart_prepare(char *cmd)
blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
system_state = SYSTEM_RESTART;
device_shutdown();
sysdev_shutdown();
}

/**
Expand Down Expand Up @@ -860,6 +861,7 @@ void kernel_shutdown_prepare(enum system_states state)
void kernel_halt(void)
{
kernel_shutdown_prepare(SYSTEM_HALT);
sysdev_shutdown();
printk(KERN_EMERG "System halted.\n");
machine_halt();
}
Expand All @@ -876,6 +878,7 @@ void kernel_power_off(void)
kernel_shutdown_prepare(SYSTEM_POWER_OFF);
if (pm_power_off_prepare)
pm_power_off_prepare();
sysdev_shutdown();
printk(KERN_EMERG "Power down.\n");
machine_power_off();
}
Expand Down

0 comments on commit 973a78f

Please sign in to comment.