2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00

Merge branch 'kvm-updates/3.1' of git://github.com/avikivity/kvm

* 'kvm-updates/3.1' of git://github.com/avikivity/kvm:
  KVM: Fix instruction size issue in pvclock scaling
This commit is contained in:
Linus Torvalds 2011-09-07 07:45:43 -07:00
commit 768b56f598

View File

@ -44,7 +44,7 @@ static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift)
: "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) ); : "a" ((u32)delta), "1" ((u32)(delta >> 32)), "2" (mul_frac) );
#elif defined(__x86_64__) #elif defined(__x86_64__)
__asm__ ( __asm__ (
"mul %[mul_frac] ; shrd $32, %[hi], %[lo]" "mulq %[mul_frac] ; shrd $32, %[hi], %[lo]"
: [lo]"=a"(product), : [lo]"=a"(product),
[hi]"=d"(tmp) [hi]"=d"(tmp)
: "0"(delta), : "0"(delta),