Re: [linux-pm] [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in sysfs

Matthew Garrett
2007-01-07T05:57:57Z

On Sat, Jan 06, 2007 at 02:42:22PM -0800, David Brownell wrote:
> On Saturday 06 January 2007 3:35 am, Zhang Rui wrote:
> >
> > Create /sys/power/alarm.
>
> Urg. This doesn't work with the RTC framework, which accepts the reality
> that some systems have multiple RTCs ... /sys/class/rtc/rtcN/alarm is a
> much more appropriate location for that RTC's alarm.

Especially since /proc/acpi/alarm is just banging on the RTC registers
- the only ACPI thing about it is that the FADT can expose whether or
not the extended registers exist, and then making sure that the GPE is
enabled.

--
Matthew Garrett | mjg59@srcf.ucam.org