kvm: kvmclock: use get_cpu() and put_cpu()
authorTiejun Chen <tiejun.chen@intel.com>
Fri, 26 Sep 2014 06:00:04 +0000 (14:00 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:33 +0000 (12:07 +0100)
commitc6338ce494456ed9c92ef10f63c0a8408bfeac6d
tree0ed47a0d66df4ea344cc9c96760a816b3c75069e
parentf30ebc312ca9def25650b4e1d01cdb425c310dca
kvm: kvmclock: use get_cpu() and put_cpu()

We can use get_cpu() and put_cpu() to replace
preempt_disable()/cpu = smp_processor_id() and
preempt_enable() for slightly better code.

Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvmclock.c