]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Select POSIX_CPU_TIMERS_TASK_WORK
authorNicolas Saenz Julienne <nsaenzju@redhat.com>
Mon, 18 Oct 2021 14:47:13 +0000 (16:47 +0200)
committerWill Deacon <will@kernel.org>
Thu, 28 Oct 2021 08:56:23 +0000 (09:56 +0100)
commit5e4af69aaea8d2202cbd8d00699ecaea18faf18a
treecc85c103ed6fa69cbf9e506d4a0ecc3420c49c87
parent93b8bef7ad5ebb72440cd1c65cde050de9ffcc79
arm64: Select POSIX_CPU_TIMERS_TASK_WORK

With 72f37ff1891a ("KVM: arm64: Use generic KVM xfer to guest work
function") all arm64 exit paths are properly equipped to handle the
POSIX timers' task work.

Deferring timer callbacks to thread context, not only limits the amount
of time spent in hard interrupt context, but is a safer
implementation[1], and will allow PREEMPT_RT setups to use KVM[2].

So let's enable POSIX_CPU_TIMERS_TASK_WORK on arm64.

[1] https://lore.kernel.org/all/20200716201923.228696399@linutronix.de/
[2] https://lore.kernel.org/linux-rt-users/87v92bdnlx.ffs@tglx/

Signed-off-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211018144713.873464-1-nsaenzju@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig