android_kernel_xiaomi_sm8350/drivers/rtc
David Brownell 8a0bdfd7a0 rtc-cmos alarm acts as oneshot
Start making the rtc-cmos alarm act more like a oneshot alarm by disabling
that alarm after its IRQ fires.  (ACPI hooks are also needed.)

The Linux RTC framework has previously been a bit vague in this area, but
any other behavior is problematic and not very portable.  RTCs with full
YYYY-MM-DD HH:MM[:SS] alarms won't have a problem here.  Only ones with
partial match criteria, with the most visible example being the PC RTC, get
confused.  (Because the criteria will match repeatedly.)

Update comments relating to that oneshot behavior and timezone handling.
(Timezones are another issue that's mostly visible with rtc-cmos.  That's
because PCs often dual-boot MS-Windows, which likes its RTC to match local
wall-clock time instead of UTC.)

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-02-06 10:41:13 -08:00
..
class.c
hctosys.c rtc_hctosys expects RTCs in UTC (doc) 2007-11-14 18:45:36 -08:00
interface.c rtc: use class iteration api 2008-01-24 20:40:44 -08:00
Kconfig rtc: ds1302 rtc support 2008-02-06 10:41:13 -08:00
Makefile rtc: ds1302 rtc support 2008-02-06 10:41:13 -08:00
rtc-at32ap700x.c rtc-at32ap700x: fix irq init oops 2007-12-17 19:28:15 -08:00
rtc-at91rm9200.c
rtc-bfin.c
rtc-cmos.c rtc-cmos alarm acts as oneshot 2008-02-06 10:41:13 -08:00
rtc-core.h
rtc-dev.c rtc-cmos alarm acts as oneshot 2008-02-06 10:41:13 -08:00
rtc-ds1216.c
rtc-ds1302.c rtc: ds1302 rtc support 2008-02-06 10:41:13 -08:00
rtc-ds1307.c rtc-ds1307 exports NVRAM 2007-11-14 18:45:36 -08:00
rtc-ds1374.c
rtc-ds1553.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-ds1672.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-ds1742.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-ep93xx.c
rtc-isl1208.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-lib.c
rtc-m41t80.c
rtc-m48t59.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-m48t86.c
rtc-max6900.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-max6902.c spi: use simplified spi_sync() calling convention 2007-12-05 09:21:19 -08:00
rtc-omap.c
rtc-pcf8563.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00
rtc-pcf8583.c rtc-pcf8583: Don't abuse I2C_M_NOSTART 2008-02-06 10:41:13 -08:00
rtc-pl031.c
rtc-proc.c
rtc-rs5c313.c
rtc-rs5c348.c
rtc-rs5c372.c
rtc-s3c.c rtc-s3c: Use is_power_of_2() macro for simplicity. 2008-02-06 10:41:13 -08:00
rtc-sa1100.c [ARM] pxa/sa1100: replace wakeup support 2008-01-26 15:07:51 +00:00
rtc-sh.c rtc: rtc-sh: Split out the CPU defs to asm/cpu/. 2008-01-28 13:18:58 +09:00
rtc-stk17ta8.c RTCs: handle NVRAM better 2007-11-14 18:45:36 -08:00
rtc-sysfs.c rtc-cmos alarm acts as oneshot 2008-02-06 10:41:13 -08:00
rtc-test.c
rtc-v3020.c
rtc-vr41xx.c
rtc-x1205.c i2c: normal_i2c can be made const (rtc drivers) 2008-01-27 18:14:47 +01:00