summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorNam Cao <namcao@linutronix.de>2026-05-29 00:12:31 +0300
committerPaul Walmsley <pjw@kernel.org>2026-06-08 19:47:22 +0300
commit319fafd9a3743b617b8547d81c41c99fb67857b1 (patch)
tree22a87e04d83cb08af22df628d81e30f8d2173f58 /include/linux/timerqueue.h
parentd585018a9258efed01514bae369ab3d4f21e7b1a (diff)
downloadlinux-319fafd9a3743b617b8547d81c41c99fb67857b1.tar.xz
riscv: traps_misaligned: Avoid redundant unaligned access speed probe
When a CPU is taken offline and then is brought back online, unaligned access speed probe always runs even though the unaligned access speed is already known, wasting CPU cycles. This is because when a CPU becomes online, the following happen: 1. check_unaligned_access_emulated() is called, which clears misaligned_access_speed if there is no emulation. 2. check_unaligned_access() is called because misaligned_access_speed is cleared, wasting CPU cycles determining something already previous known. Avoid the redundant access speed probe by stop clearing misaligned_access_speed in (1). If access speed is already known, just reuse it. On my Visionfive 2, this reduces CPU bring-up time from 26ms to 0.8ms. Signed-off-by: Nam Cao <namcao@linutronix.de> Link: https://patch.msgid.link/aa5755142537d462a9e3d2074d82ad4eef6774ba.1780002199.git.namcao@linutronix.de Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions