aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/timing.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-12-02 16:51:58 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:55:41 -0500
commit7b7015914b30ad8d9136d41412c5129b9bc9af70 (patch)
treec0764fff834b784d933126f30ef5562aef0dc55c /arch/powerpc/kvm/timing.h
parent73e75b416ffcfa3a84952d8e389a0eca080f00e1 (diff)
KVM: ppc: mostly cosmetic updates to the exit timing accounting code
The only significant changes were to kvmppc_exit_timing_write() and kvmppc_exit_timing_show(), both of which were dramatically simplified. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/timing.h')
-rw-r--r--arch/powerpc/kvm/timing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/timing.h b/arch/powerpc/kvm/timing.h
index 1af7181fa2b5..bb13b1f3cd5a 100644
--- a/arch/powerpc/kvm/timing.h
+++ b/arch/powerpc/kvm/timing.h
@@ -45,7 +45,7 @@ static inline void kvmppc_set_exit_type(struct kvm_vcpu *vcpu, int type) {}
45#endif /* CONFIG_KVM_EXIT_TIMING */ 45#endif /* CONFIG_KVM_EXIT_TIMING */
46 46
47/* account the exit in kvm_stats */ 47/* account the exit in kvm_stats */
48static inline void account_exit_stat(struct kvm_vcpu *vcpu, int type) 48static inline void kvmppc_account_exit_stat(struct kvm_vcpu *vcpu, int type)
49{ 49{
50 /* type has to be known at build time for optimization */ 50 /* type has to be known at build time for optimization */
51 BUILD_BUG_ON(__builtin_constant_p(type)); 51 BUILD_BUG_ON(__builtin_constant_p(type));
@@ -93,10 +93,10 @@ static inline void account_exit_stat(struct kvm_vcpu *vcpu, int type)
93} 93}
94 94
95/* wrapper to set exit time and account for it in kvm_stats */ 95/* wrapper to set exit time and account for it in kvm_stats */
96static inline void account_exit(struct kvm_vcpu *vcpu, int type) 96static inline void kvmppc_account_exit(struct kvm_vcpu *vcpu, int type)
97{ 97{
98 kvmppc_set_exit_type(vcpu, type); 98 kvmppc_set_exit_type(vcpu, type);
99 account_exit_stat(vcpu, type); 99 kvmppc_account_exit_stat(vcpu, type);
100} 100}
101 101
102#endif /* __POWERPC_KVM_EXITTIMING_H__ */ 102#endif /* __POWERPC_KVM_EXITTIMING_H__ */