]> git.baikalelectronics.ru Git - kernel.git/commit
pvclock: Get rid of __pvclock_read_cycles in function pvclock_read_flags
authorMinfei Huang <mnghuan@gmail.com>
Sat, 28 May 2016 12:27:43 +0000 (20:27 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jun 2016 13:12:15 +0000 (15:12 +0200)
commit3f4f74a650e3128902c7e34b75e3b52c431b82a7
tree8ddec33ffec607c9255063dfd388c6b69249a378
parent092f4c04a0529dc3e5fb159a41b89a6a96a533d0
pvclock: Get rid of __pvclock_read_cycles in function pvclock_read_flags

There is a generic function __pvclock_read_cycles to be used to get both
flags and cycles. For function pvclock_read_flags, it's useless to get
cycles value. To make this function be more effective, get this variable
flags directly in function.

Signed-off-by: Minfei Huang <mnghuan@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/pvclock.c