From: Oliver Kurth Date: Thu, 28 Mar 2019 19:43:00 +0000 (-0700) Subject: Common header file change not applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=076e7e10f24b53fcbd7b21d95ee4763f5f527e45;p=thirdparty%2Fopen-vm-tools.git Common header file change not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/vm_basic_asm.h b/open-vm-tools/lib/include/vm_basic_asm.h index bdb094ac7..eadf00e5f 100644 --- a/open-vm-tools/lib/include/vm_basic_asm.h +++ b/open-vm-tools/lib/include/vm_basic_asm.h @@ -785,12 +785,14 @@ static INLINE void PAUSE(void) #if defined(__GNUC__) || defined(VM_ARM_32) { -#ifdef VM_ARM_ANY +#ifdef VM_ARM_64 + __asm__ __volatile__("yield"); +#elif defined VM_ARM_32 /* - * ARM has no instruction to execute "spin-wait loop", just leave it - * empty. + * YIELD is available in ARMv6K and above, so we could probably refine this + * instead of leaving it empty. */ -#else +#else // x86 __asm__ __volatile__( "pause" :); #endif }