From f969b7d892dc86243c93a61eb46124c105b59145 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 3 Aug 2009 18:53:10 +0200 Subject: [PATCH] Mixer: fixed wrong macro logic leading to potential performance loss The macro logic for defining the SPINLOCK_PAUSE macro tested against LMMS_HOST_X86_64 twice instead of testing against LMMS_HOST_X86_64 and LMMS_HOST_X86. This caused the SPINLOCK_PAUSE macro not being set on x86. (cherry picked from commit bf8f823751fa581cf7cbd33c7c466101d481b2f2) --- src/core/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mixer.cpp b/src/core/mixer.cpp index db0e0d9ed..81de100d8 100644 --- a/src/core/mixer.cpp +++ b/src/core/mixer.cpp @@ -280,7 +280,7 @@ void MixerWorkerThread::processJobQueue( void ) // define a pause instruction for spinlock-loop - merely useful on // HyperThreading systems with just one physical core (e.g. Intel Atom) -#ifdef LMMS_HOST_X86_64 +#ifdef LMMS_HOST_X86 #define SPINLOCK_PAUSE() asm( "pause" ) #else #ifdef LMMS_HOST_X86_64