Re: [PATCH] rtc: cmos: avoid taking rtc_lock for extended period of time

From: Alexandre Belloni
Date: Thu Oct 31 2024 - 19:19:57 EST


On Fri, 25 Oct 2024 13:14:57 -0700, Dmitry Torokhov wrote:
> 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.
>
> [...]

Applied, thanks!

[1/1] rtc: cmos: avoid taking rtc_lock for extended period of time
https://git.kernel.org/abelloni/c/0a6efab33eab

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com