KVM: arm64: Use the known cpu id instead of smp_processor_id()
authorShaoqin Huang <shahuang@redhat.com>
Thu, 27 Jul 2023 09:07:54 +0000 (05:07 -0400)
committerMarc Zyngier <maz@kernel.org>
Fri, 28 Jul 2023 08:50:08 +0000 (09:50 +0100)
commit1ba11daef0a9b062e40b5393d285c82ab6483730
treec30b6d302368fa79f1e8e3686a3bf26dbc2fc33e
parent6eaae198076080886b9e7d57f4ae06fa782f90ef
KVM: arm64: Use the known cpu id instead of smp_processor_id()

In kvm_arch_vcpu_load(), it has the parameter cpu which is the value of
smp_processor_id(), so no need to get it again. Simply replace it.

Signed-off-by: Shaoqin Huang <shahuang@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230727090754.1900310-1-shahuang@redhat.com
arch/arm64/kvm/arm.c