summaryrefslogtreecommitdiff
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2022-09-15 11:38:24 +0300
committerPaul E. McKenney <paulmck@kernel.org>2022-10-19 00:59:57 +0300
commitb5ad0d2e8832c770b3ff2887ae37b47f42a3ab82 (patch)
tree334228e44116eb755b069a770914fc0913b5ad6a /include/linux/kvm_host.h
parent6343402ac35dd534291a6c82924a4f09cf6cd1e5 (diff)
downloadlinux-b5ad0d2e8832c770b3ff2887ae37b47f42a3ab82.tar.xz
rcu: Remove unused 'cpu' in rcu_virt_note_context_switch()
This commit removes the unused function argument 'cpu'. This does not change functionality, but might save a cycle or two. Signed-off-by: Zeng Heng <zengheng4@huawei.com> Acked-by: Mukesh Ojha <quic_mojha@quicinc.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 32f259fa5801..381b92d146c7 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -416,7 +416,7 @@ static __always_inline void guest_context_enter_irqoff(void)
*/
if (!context_tracking_guest_enter()) {
instrumentation_begin();
- rcu_virt_note_context_switch(smp_processor_id());
+ rcu_virt_note_context_switch();
instrumentation_end();
}
}