]> bbs.cooldavid.org Git - net-next-2.6.git/commit
KVM: ia64: Create inline function kvm_get_itc() to centralize ITC reading.
authorJes Sorensen <jes@sgi.com>
Wed, 25 Feb 2009 16:38:53 +0000 (10:38 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:28 +0000 (11:48 +0300)
commitc6c9fcdf0fff7da77c088be11e3c4d0181b36941
tree2de6d8ecc5e58a3d3b744defa741faf191144d0b
parent0c72ea7fb8a39b4bba071b19f5f835af5b5e538a
KVM: ia64: Create inline function kvm_get_itc() to centralize ITC reading.

Move all reading of special register 'AR_ITC' into two functions, one
in the kernel and one in the VMM module. When running on SN2, base the
result on the RTC rather the system ITC, as the ITC isn't
synchronized.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/ia64/kvm/vcpu.c