diff options
| author | Zhao Yakui <[email protected]> | 2008-04-28 09:11:58 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-28 15:58:17 +0000 |
| commit | c116bc2ae516e9949d645bc75b1ee294ff15db23 (patch) | |
| tree | 9296da3e37dfc8f80566624faf781f19d41ea9f1 /mm/sparse.c | |
| parent | rtc: rtc-rs5c372: fix up NULL name in transfer error path (diff) | |
| download | kernel-c116bc2ae516e9949d645bc75b1ee294ff15db23.tar.gz kernel-c116bc2ae516e9949d645bc75b1ee294ff15db23.zip | |
rtc: add the support for alarm time relative to current time in sysfs
In current kernel if we want to set the alarm time, the absolute time the
seconds relative to 1970-01-01 00:00:00) should be written into
/sys/class/rtc/rtc0/wakealarm. It is not convenient.
It is more reasonable to add the support for the alarm time relative to
current RTC time.(the unit is second)
For example:
If the RTC is required to generate alarm after 2 minutes, the following
will be OK.
echo +120 > /sys/class/rtc/rtc0/wakealarm
or echo +0x78 > /sys/class/rtc/rtc0/wakealarm
Signed-off-by: Zhao Yakui <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
