summaryrefslogtreecommitdiff
path: root/mm/internal.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-25 13:14:57 -0700
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2024-11-01 00:19:22 +0100
commit0a6efab33eab4e973db26d9f90c3e97a7a82e399 (patch)
treec7dcd6cd8b721060499b1a71d4ad968eedf57bf8 /mm/internal.h
parentd4488377609e36cd9785533c29ccea4b86c292b9 (diff)
rtc: cmos: avoid taking rtc_lock for extended period of time
On my device reading entirety of /sys/devices/pnp0/00:03/cmos_nvram0/nvmem takes about 9 msec during which time interrupts are off on the CPU that does the read and the thread that performs the read can not be migrated or preempted by another higher priority thread (RT or not). Allow readers and writers be preempted by taking and releasing rtc_lock spinlock for each individual byte read or written rather than once per read/write request. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Mateusz Jończyk <mat.jonczyk@o2.pl> Link: https://lore.kernel.org/r/Zxv8QWR21AV4ztC5@google.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions