Centos-kernel-stream-9/drivers/rtc
Zhao Yakui c116bc2ae5 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 <yakui.zhao@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:17 -07:00
..
Kconfig rtc: avoid legacy drivers with generic framework 2008-04-28 08:58:16 -07:00
Makefile
class.c
hctosys.c
interface.c
rtc-at32ap700x.c
rtc-at91rm9200.c
rtc-at91sam9.c
rtc-bfin.c
rtc-cmos.c
rtc-core.h
rtc-dev.c
rtc-ds1216.c
rtc-ds1302.c
rtc-ds1307.c
rtc-ds1374.c
rtc-ds1511.c make ds1511_rtc_{read,set}_time() static 2008-04-28 08:58:16 -07:00
rtc-ds1553.c
rtc-ds1672.c
rtc-ds1742.c
rtc-ep93xx.c
rtc-isl1208.c rtc-isl1208: new style conversion and minor bug fixes 2008-04-28 08:58:16 -07:00
rtc-lib.c
rtc-m41t80.c
rtc-m48t59.c
rtc-m48t86.c
rtc-max6900.c
rtc-max6902.c
rtc-omap.c
rtc-pcf8563.c rtc-pcf8563: new style conversion 2008-04-28 08:58:16 -07:00
rtc-pcf8583.c rtc-pcf8583 build fix 2008-04-28 08:58:16 -07:00
rtc-pl031.c
rtc-proc.c
rtc-r9701.c
rtc-rs5c313.c
rtc-rs5c348.c
rtc-rs5c372.c rtc: rtc-rs5c372: fix up NULL name in transfer error path 2008-04-28 08:58:17 -07:00
rtc-s3c.c
rtc-s35390a.c
rtc-sa1100.c
rtc-sh.c
rtc-stk17ta8.c
rtc-sysfs.c rtc: add the support for alarm time relative to current time in sysfs 2008-04-28 08:58:17 -07:00
rtc-test.c rtc: silence section mismatch warning in rtc-test 2008-04-28 08:58:16 -07:00
rtc-v3020.c
rtc-vr41xx.c
rtc-x1205.c rtc-x1205: new style conversion 2008-04-28 08:58:16 -07:00