]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: call acpi_sleep_proc_init() explicitly rather than as initcall
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 24 Mar 2009 22:50:14 +0000 (16:50 -0600)
committerLen Brown <len.brown@intel.com>
Fri, 27 Mar 2009 16:51:23 +0000 (12:51 -0400)
commitce452b9709cb203e0ba305b55992d77e89cd3363
tree4cbb9e14dc14537eceddd9587596b01be2d2322d
parentc29c279a337534ff90bae1c6317fcb8731dd7d87
ACPI: call acpi_sleep_proc_init() explicitly rather than as initcall

This patch makes acpi_init() call acpi_sleep_proc_init() directly.
Previously, acpi_sleep_proc_init() was a late_initcall (sequence 7),
apparently to make sure that the /proc hierarchy already exists:

    2003/02/13 12:38:03-06:00 mochel
    acpi sleep: demote sleep proc file creation.

    - Make acpi_sleep_proc_init() a late_initcall(), and not called from
      acpi_sleep_init(). This guarantees that the acpi proc hierarchy is at
      least there when we create the dang file.

This should no longer be an issue because acpi_bus_init() (called early
in acpi_init()) creates acpi_root_dir (/proc/acpi).

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bus.c
drivers/acpi/internal.h
drivers/acpi/proc.c