lkml.org 
[lkml]   [2009]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [BUG FIX] Make x86_32 uni-processor Atomic ops, Atomic
Ingo Molnar wrote:
> * Michael S. Zick <lkml@morethan.org> wrote:
>
>> Found in the bit-rot for 32-bit, x86, Uni-processor builds:
>>
>> diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
>> index f6aa18e..3c790ef 100644
>> --- a/arch/x86/include/asm/alternative.h
>> +++ b/arch/x86/include/asm/alternative.h
>> @@ -35,7 +35,7 @@
>> "661:\n\tlock; "
>>
>> #else /* ! CONFIG_SMP */
>> -#define LOCK_PREFIX ""
>> +#define LOCK_PREFIX "\n\tlock; "
>> #endif
>
> What is your motivation for this change? At first sight this makes
> the UP kernel a bit larger and a bit smaller. Are you fixing some
> real regression/bug here?
>

That looks very odd indeed. The whole point of the LOCK_PREFIX macro is
to squelch it on UP (locks that should not be squelched on UP should not
be annotated LOCK_PREFIX.)

-hpa



\
 
 \ /
  Last update: 2009-05-22 21:03    [W:0.205 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site