diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-20 19:30:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-20 19:30:27 -0400 |
commit | bfebeb16722d93caf7870b63aa7d094b6843479a (patch) | |
tree | 48cfc8044f7604b99a127a3c0667ff20f57e22ef /drivers/char | |
parent | 3933ec73cd9bbff4a98259d0eae606af4e2850a2 (diff) | |
parent | 6b583a64fd1e019fd01626b46892ebf2361951c5 (diff) |
Merge tag 'rtc-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux
Pull RTC updates from Alexandre Belloni:
"It is now possible to add custom sysfs attributes while avoiding a
possible race condition. Unused code has been removed resulting in a
nice reduction of the code base. And more drivers have been switched
to SPDX by their maintainers.
Summary:
Subsystem:
- new helpers to add custom sysfs attributes
- struct rtc_task removal along with rtc_irq_[un]register()
- rtc_irq_set_state and rtc_irq_set_freq are not exported anymore
Drivers:
- armada38x: reset after rtc power loss
- ds1307: now supports m41t11
- isl1208: now supports isl1219 and tamper detection
- pcf2127: internal SRAM support"
* tag 'rtc-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (34 commits)
rtc: ds1307: simplify hwmon config
rtc: s5m: Add SPDX license identifier
rtc: maxim: Add SPDX license identifiers
rtc: isl1219: add device tree documentation
rtc: isl1208: set ev-evienb bit from device tree
rtc: isl1208: Add "evdet" interrupt source for isl1219
rtc: isl1208: add support for isl1219 with tamper detection
rtc: sysfs: facilitate attribute add to rtc device
rtc: remove struct rtc_task
char: rtc: remove task handling
rtc: pcf85063: preserve control register value between stop and start
rtc: sh: remove unused variable rtc_dev
rtc: unexport rtc_irq_set_*
rtc: simplify rtc_irq_set_state/rtc_irq_set_freq
rtc: remove irq_task and irq_task_lock
rtc: remove rtc_irq_register/rtc_irq_unregister
rtc: sh: remove dead code
rtc: sa1100: don't set PIE frequency
rtc: ds1307: support m41t11 variant
rtc: ds1307: fix data pointer to m41t0
...
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/rtc.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 94fedeeec035..4948c8bda6b1 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -193,14 +193,6 @@ static unsigned long rtc_freq; /* Current periodic IRQ rate */ | |||
193 | static unsigned long rtc_irq_data; /* our output to the world */ | 193 | static unsigned long rtc_irq_data; /* our output to the world */ |
194 | static unsigned long rtc_max_user_freq = 64; /* > this, need CAP_SYS_RESOURCE */ | 194 | static unsigned long rtc_max_user_freq = 64; /* > this, need CAP_SYS_RESOURCE */ |
195 | 195 | ||
196 | #ifdef RTC_IRQ | ||
197 | /* | ||
198 | * rtc_task_lock nests inside rtc_lock. | ||
199 | */ | ||
200 | static DEFINE_SPINLOCK(rtc_task_lock); | ||
201 | static rtc_task_t *rtc_callback; | ||
202 | #endif | ||
203 | |||
204 | /* | 196 | /* |
205 | * If this driver ever becomes modularised, it will be really nice | 197 | * If this driver ever becomes modularised, it will be really nice |
206 | * to make the epoch retain its value across module reload... | 198 | * to make the epoch retain its value across module reload... |
@@ -264,11 +256,6 @@ static irqreturn_t rtc_interrupt(int irq, void *dev_id) | |||
264 | 256 | ||
265 | spin_unlock(&rtc_lock); | 257 | spin_unlock(&rtc_lock); |
266 | 258 | ||
267 | /* Now do the rest of the actions */ | ||
268 | spin_lock(&rtc_task_lock); | ||
269 | if (rtc_callback) | ||
270 | rtc_callback->func(rtc_callback->private_data); | ||
271 | spin_unlock(&rtc_task_lock); | ||
272 | wake_up_interruptible(&rtc_wait); | 259 | wake_up_interruptible(&rtc_wait); |
273 | 260 | ||
274 | kill_fasync(&rtc_async_queue, SIGIO, POLL_IN); | 261 | kill_fasync(&rtc_async_queue, SIGIO, POLL_IN); |