]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Grab lapic_timer in a local variable to cleanup periodic code
authorSean Christopherson <seanjc@google.com>
Thu, 13 Nov 2025 20:51:14 +0000 (12:51 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 17 Nov 2025 15:50:23 +0000 (07:50 -0800)
commita091fe60c2d3943b058132a64682a509d55bd325
tree7764d78263250b904a7f2da03eb93337aa5fdfcc
parent18ab3fc8e880791aa9f7c000261320fc812b5465
KVM: x86: Grab lapic_timer in a local variable to cleanup periodic code

Stash apic->lapic_timer in a local "ktimer" variable in
advance_periodic_target_expiration() to eliminate a few unaligned wraps,
and to make the code easier to read overall.

No functional change intended.

Link: https://patch.msgid.link/20251113205114.1647493-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c