linux/drivers/acpi
Linus Torvalds 1efd325fba Fix RTC wakealarm sysfs interface breakage.
Commit ed458df4d2 ("PnP: move
pnpacpi/pnpbios_init to after PCI init") moved the PnP RTC discovery
later, and now the ACPI RTC glue code doesn't find it any more, breaking
the RTC wakealarm sysfs interfaces, as reported by Rafael.

This really is fairly messy, and we have several annoying ordering
constraints here - the PnP code that sets up the RTC resources wants to
run after the PCI resources have to be registered, which in turn needs
to run after ACPI has at least enumerated the root PCI buses etc.  Our
initcall ordering is not fine-grained enough to make this all painless.

So this moves the ACPI RTC glue ("acpi_rtc_init()") down to a regular
module call, which fixes the problem Rafael has.  The reason this isn't
wonderful is that we really should do acpi_rtc_init before we do the
rtc_cmos init, and now those two are in the same module_init() section.

Which happens to work, but only because drivers/rtc is linked after
drivers/acpi.  In other words, we still have a very subtle ordering
issue here. Grr.

Reported-and-tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-12 11:30:08 -07:00
..
dispatcher ACPI: Change package length error to warning 2008-08-18 04:14:59 +02:00
events
executer ACPICA: Fix possible memory leak in Unload() operator 2008-08-15 02:11:59 +02:00
hardware
namespace ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
parser
resources ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
sleep ACPI: Make /proc/acpi/wakeup interface handle PCI devices (again) 2008-10-03 18:22:19 -07:00
tables
utilities ACPICA: Additional error checking for pathname utilities 2008-08-15 02:12:16 +02:00
Kconfig toshiba_acpi: Add support for bluetooth toggling through rfkill (v8) 2008-09-05 16:17:45 -04:00
Makefile
ac.c
acpi_memhotplug.c
asus_acpi.c Remove newline from the description of module parameters 2008-08-01 12:46:41 -07:00
battery.c
bay.c
blacklist.c
bus.c
button.c
cm_sbs.c
container.c
debug.c
dock.c ACPI: Properly clear flags on false-positives and send uevent on sudden unplug 2008-08-15 03:02:42 +02:00
ec.c ACPI: Avoid bogus EC timeout when EC is in Polling mode 2008-08-15 03:13:06 +02:00
event.c
fan.c
glue.c Fix RTC wakealarm sysfs interface breakage. 2008-10-12 11:30:08 -07:00
numa.c
osl.c
pci_bind.c
pci_irq.c
pci_link.c ACPI: bounds check IRQ to prevent memory corruption 2008-08-15 03:17:07 +02:00
pci_root.c
pci_slot.c
power.c
processor_core.c Merge branch 'compal-fix' into release-2.6.27 2008-08-21 08:44:21 +02:00
processor_idle.c acpi: trivial cleanups 2008-08-15 02:29:06 +02:00
processor_perflib.c ACPI: Fix now signed module parameter. 2008-08-18 08:38:36 +02:00
processor_thermal.c
processor_throttling.c
reboot.c
sbs.c
sbshc.c ACPI: Avoid bogus timeout about SMbus check 2008-09-04 14:32:28 +02:00
sbshc.h
scan.c
system.c
tables.c acpi: add checking for NULL early param 2008-08-21 08:45:39 +02:00
thermal.c
toshiba_acpi.c toshiba_acpi: Add support for bluetooth toggling through rfkill (v8) 2008-09-05 16:17:45 -04:00
utils.c
video.c
wmi.c ACPI: WMI: Set instance for query block calls 2008-08-15 02:25:01 +02:00