drivers/rtc/rtc-twl.c: optimize IRQ bit access
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Fri, 23 Mar 2012 22:02:32 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:39 +0000 (16:58 -0700)
commitce9f650636d310e4c8febc821b0038e9918a12db
tree3165a949b121068c6c62b42bb9c77f20cb53f5e4
parentb4f0b880c8d7eb225b79dec663780b4dcdea7fbc
drivers/rtc/rtc-twl.c: optimize IRQ bit access

As the TWL RTC driver has a cached copy of enabled RTC interrupt bits in
variable rtc_irq_bits, that can be checked before really setting or
masking any of the interrupt bits.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
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>
drivers/rtc/rtc-twl.c