]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] rtc framework handles periodic irqs
authorDavid Brownell <david-b@pacbell.net>
Sat, 25 Nov 2006 19:09:27 +0000 (11:09 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 25 Nov 2006 21:28:33 +0000 (13:28 -0800)
commitefa6f3a2a06014a02075dc86f4f12c4c2b7ec52d
tree3b6ffb34023a252599b08b045db100a6ca6bfff7
parentd00ca6eeb7455f935ac5d4fb8bb948c8cc6f06b3
[PATCH] rtc framework handles periodic irqs

The RTC framework has an irq_set_freq() method that should be used to manage
the periodic IRQ frequency, but the current ioctl logic doesn't know how to do
that.  This patch teaches it how.

This means that drivers implementing irq_set_freq() will automatically support
RTC_IRQP_{READ,SET} ioctls; that logic doesn't need duplication within the
driver.

[akpm@osdl.org: export rtc_irq_set_freq]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/rtc/interface.c
drivers/rtc/rtc-dev.c