summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2016-03-07 00:27:53 +0900
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2016-03-14 17:08:38 +0100
commitfc1dcb0b39dbb10d3290f2fcd6e154670f699166 (patch)
treefc0252ddaa4eada3cb9150607bbddf80bfffa68d /kernel/power
parent95c60c1c8f51521e7f2174fd0fff4dae6d522b83 (diff)
downloadlinux-fc1dcb0b39dbb10d3290f2fcd6e154670f699166.tar.bz2
rtc: ds3232: use rtc->ops_lock to protect alarm operations
ds3232->mutex is used to protect for alarm operations which need to access status and control registers. But we can use rtc->ops_lock instead. rtc->ops_lock is held when most of rtc_class_ops methods are called, so we only need to explicitly acquire it from irq handler in order to protect form concurrent accesses. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'kernel/power')
0 files changed, 0 insertions, 0 deletions