diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2016-03-06 18:27:53 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-03-14 19:08:38 +0300 |
commit | fc1dcb0b39dbb10d3290f2fcd6e154670f699166 (patch) | |
tree | fc0252ddaa4eada3cb9150607bbddf80bfffa68d /net/lapb/lapb_subr.c | |
parent | 95c60c1c8f51521e7f2174fd0fff4dae6d522b83 (diff) | |
download | linux-fc1dcb0b39dbb10d3290f2fcd6e154670f699166.tar.xz |
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 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions