linux/drivers/rtc
David Brownell 743e6a504f rtc: file close() consistently disables repeating irqs
Make the rtc framework consistent about disabling 1/second update IRQs
that may have been activated through the /dev interface, when that /dev
file is closed.  (It may have closed because of coredump, etc.) This was
previously done only for emulated update IRQs ...  now, do it always.

Also comment the current policy: repeating IRQs (periodic, update) that
userspace enabled will be cleanly disabled, but alarms are left alone.
Such repeating IRQs are a constant and pointless system load.

Update some RTC drivers to remove now-needless release() methods.  Most
such methods just enforce that policy.  The others all seem to be buggy,
and mistreat in-kernel clients of periodic or alarm IRQs.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Andrew Sharp <andy.sharp@onstor.com>
Cc: Angelo Castello <angelo.castello@st.com>
Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Cc: Thomas Hommel <thomas.hommel@gefanuc.com>
Acked-by: 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-10-16 11:21:40 -07:00
..
class.c RTC: periodic irq fix 2007-10-16 09:43:13 -07:00
hctosys.c rtc_hctosys expects RTCs in UTC (doc) 2007-11-14 18:45:36 -08:00
interface.c rtc: don't return -EBUSY when mutex_lock_interruptible() fails 2008-07-30 09:41:45 -07:00
Kconfig rtc: add device driver for Dallas DS3234 SPI RTC chip 2008-10-16 11:21:39 -07:00
Makefile rtc: add device driver for Dallas DS3234 SPI RTC chip 2008-10-16 11:21:39 -07:00
rtc-at32ap700x.c rtc-at32ap700x: Enable wakeup 2008-07-02 11:05:01 +02:00
rtc-at91rm9200.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-at91sam9.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-bfin.c Blackfin RTC Driver: dont let RTC programming in bootloaders randomly cause ~5 second boot delays 2008-08-20 15:40:30 -07:00
rtc-bq4802.c rtc-bq4802: Fix sparse warnings. 2008-09-09 19:50:04 -07:00
rtc-cmos.c rtc-cmos: look for PNP RTC first, then for platform RTC 2008-10-14 16:30:14 -07:00
rtc-core.h rtc: update to class device removal patches 2007-05-08 11:15:18 -07:00
rtc-dev.c rtc: file close() consistently disables repeating irqs 2008-10-16 11:21:40 -07:00
rtc-ds1216.c rtc: fix platform driver hotplug/coldplug 2008-04-11 08:06:44 -07:00
rtc-ds1286.c MIPS: DS1286: New RTC driver 2008-10-15 12:46:51 +01:00
rtc-ds1302.c rtc: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:17 -07:00
rtc-ds1305.c rtc: ds1305/ds1306 driver 2008-07-24 10:47:33 -07:00
rtc-ds1307.c rtc-ds1307: alarm support for ds1337/ds1339 2008-10-16 11:21:39 -07:00
rtc-ds1374.c rtc: DS1374 wakeup support 2008-10-16 11:21:39 -07:00
rtc-ds1511.c rtc: file close() consistently disables repeating irqs 2008-10-16 11:21:40 -07:00
rtc-ds1553.c rtc: file close() consistently disables repeating irqs 2008-10-16 11:21:40 -07:00
rtc-ds1672.c rtc: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:17 -07:00
rtc-ds1742.c rtc: fix platform driver hotplug/coldplug 2008-04-11 08:06:44 -07:00
rtc-ds3234.c rtc: add device driver for Dallas DS3234 SPI RTC chip 2008-10-16 11:21:39 -07:00
rtc-ep93xx.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-fm3130.c rtc-fm3130: fix chip naming 2008-07-12 14:33:41 -07:00
rtc-isl1208.c rtc-isl1208: fix double removal of a sysfs entry 2008-08-12 16:07:28 -07:00
rtc-lib.c rtc_time_to_tm: fix signed/unsigned arithmetic 2008-09-02 19:21:40 -07:00
rtc-m41t80.c rtc: m41t80: use pr_info() as appropriate 2008-07-24 10:47:33 -07:00
rtc-m41t94.c rtc: add support for ST M41T94 SPI RTC 2008-07-24 10:47:33 -07:00
rtc-m48t35.c RTC: M48T35: new RTC driver 2008-10-15 12:46:51 +01:00
rtc-m48t59.c rtc-m48t59: Only check century bits on m48t59 chips. 2008-09-09 19:38:17 -07:00
rtc-m48t86.c rtc: fix platform driver hotplug/coldplug 2008-04-11 08:06:44 -07:00
rtc-max6900.c rtc: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:17 -07:00
rtc-max6902.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
rtc-omap.c rtc: rtc-omap footprint shrinkage 2008-07-24 10:47:33 -07:00
rtc-pcf8563.c rtc-pcf8563: remove client validation 2008-10-16 11:21:39 -07:00
rtc-pcf8583.c rtc: convert the PCF8583 driver to the new I2C style framework with device_ids 2008-07-24 10:47:34 -07:00
rtc-pl030.c rtc: remove some NOP open/release methods 2008-10-16 11:21:39 -07:00
rtc-pl031.c rtc: remove some NOP open/release methods 2008-10-16 11:21:39 -07:00
rtc-ppc.c rtc: class driver for ppc_md RTC functions 2008-06-06 11:29:13 -07:00
rtc-proc.c drivers: use non-racy method for proc entries creation (2) 2008-04-29 08:06:22 -07:00
rtc-r9701.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
rtc-rs5c313.c rtc: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:17 -07:00
rtc-rs5c348.c [PATCH] rtc: Make rtc-rs5c348 driver hotplug-aware 2007-08-27 02:16:58 +01:00
rtc-rs5c372.c rtc: rtc-rs5c372: add support for Ricoh R2025S/D RTC 2008-10-16 11:21:40 -07:00
rtc-s3c.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-s35390a.c i2c: Match dummy devices by type 2008-05-11 20:37:06 +02:00
rtc-sa1100.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
rtc-sh.c rtc: file close() consistently disables repeating irqs 2008-10-16 11:21:40 -07:00
rtc-starfire.c rtc: Add Starfire platform RTC driver. 2008-08-29 14:16:52 -07:00
rtc-stk17ta8.c rtc: file close() consistently disables repeating irqs 2008-10-16 11:21:40 -07:00
rtc-sun4v.c rtc: Add Sun4V hypervisor RTC driver. 2008-08-29 14:16:50 -07:00
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: replace remaining __FUNCTION__ occurrences 2008-04-28 08:58:17 -07:00
rtc-vr41xx.c rtc-vr41xx: add irq_set_freq() and irq_set_state() 2008-07-24 10:47:34 -07:00
rtc-x1205.c rtc-x1205: Fix alarm set 2008-07-04 10:40:05 -07:00