diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2016-03-07 00:27:53 +0900 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-03-14 17:08:38 +0100 |
commit | fc1dcb0b39dbb10d3290f2fcd6e154670f699166 (patch) | |
tree | fc0252ddaa4eada3cb9150607bbddf80bfffa68d /tools/perf/ui/browsers/annotate.c | |
parent | 95c60c1c8f51521e7f2174fd0fff4dae6d522b83 (diff) |
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 'tools/perf/ui/browsers/annotate.c')
0 files changed, 0 insertions, 0 deletions