linux-stable/include
Xianglai Li c7f5d772cb LoongArch: Add cpuhotplug hooks to fix high cpu usage of vCPU threads
[ Upstream commit 8ef7f3132e ]

When the CPU is offline, the timer of LoongArch is not correctly closed.
This is harmless for real machines, but resulting in an excessively high
cpu usage rate of the offline vCPU thread in the virtual machines.

To correctly close the timer, we have made the following modifications:

Register the cpu hotplug event (CPUHP_AP_LOONGARCH_ARCH_TIMER_STARTING)
for LoongArch. This event's hooks will be called to close the timer when
the CPU is offline.

Clear the timer interrupt when the timer is turned off. Since before the
timer is turned off, there may be a timer interrupt that has already been
in the pending state due to the interruption of the disabled, which also
affects the halt state of the offline vCPU.

Signed-off-by: Xianglai Li <lixianglai@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 19:02:15 +02:00
..
acpi
asm-generic
clocksource
crypto crypto: acomp - Fix CFI failure due to type punning 2025-08-28 16:34:34 +02:00
cxl
drm drm/tests: Do not use drm_fb_blit() in format-helper tests 2025-08-28 16:34:43 +02:00
dt-bindings
hyperv
keys
kunit
kvm
linux LoongArch: Add cpuhotplug hooks to fix high cpu usage of vCPU threads 2025-09-09 19:02:15 +02:00
math-emu
media
memory
misc
net net: rose: convert 'use' field to refcount_t 2025-09-04 16:55:42 +02:00
pcmcia
ras
rdma
rv
scsi
soc
sound ASoC: cs35l56: Handle new algorithms IDs for CS35L63 2025-08-28 16:34:49 +02:00
target
trace btrfs: use refcount_t type for the extent buffer reference counter 2025-08-28 16:34:33 +02:00
uapi vhost: Fix ioctl # for VHOST_[GS]ET_FORK_FROM_OWNER 2025-09-04 16:55:30 +02:00
ufs
vdso
video
xen
Kbuild