]> git.hungrycats.org Git - linux/commit
[power] Register PM subsystem, and create power/ directory in sysfs.
authorPatrick Mochel <mochel@osdl.org>
Thu, 14 Aug 2003 12:31:17 +0000 (05:31 -0700)
committerPatrick Mochel <mochel@osdl.org>
Thu, 14 Aug 2003 12:31:17 +0000 (05:31 -0700)
commitfcab304b5df5bf6188d9addc340d78f1a153ea2d
tree6323a39a65bcde8c4b9018905b3620f8fed7ed78
parentbee60089075ef59a0e997148e43069aa3df8e227
[power] Register PM subsystem, and create power/ directory in sysfs.

- Add file 'state' which provides single point of entry for all PM
  transitions.
  File accepts a string specifying what state to enter, which is one of:
  "standby": Power-on Suspend (aka S1)
  "suspend": Suspend-to-RAM (aka S3)
  "hibernate": Suspend-to-disk (aka S4)

  The names do suck, because they are lifted from the ACPI spec. Better
  naming suggestions are welcome, though these names are relatively well-
  known.

- Handler for file does little now, but will validate the passed string and
  call the appropriate functions.

- Needs to be integrated with swsusp and ACPI S3 code.
kernel/power/Makefile
kernel/power/main.c [new file with mode: 0644]