lkml.org 
[lkml]   [2019]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC 3/7] x86/percpu: Use C for percpu accesses when possible
Date
> On Jul 22, 2019, at 1:52 PM, Peter Zijlstra <peterz@infradead.org> wrote:
>
> On Thu, Jul 18, 2019 at 10:41:06AM -0700, Nadav Amit wrote:
>
>> diff --git a/arch/x86/include/asm/preempt.h b/arch/x86/include/asm/preempt.h
>> index 99a7fa9ab0a3..60f97b288004 100644
>> --- a/arch/x86/include/asm/preempt.h
>> +++ b/arch/x86/include/asm/preempt.h
>> @@ -91,7 +91,8 @@ static __always_inline void __preempt_count_sub(int val)
>> */
>> static __always_inline bool __preempt_count_dec_and_test(void)
>> {
>> - return GEN_UNARY_RMWcc("decl", __preempt_count, e, __percpu_arg([var]));
>> + return GEN_UNARY_RMWcc("decl", __my_cpu_var(__preempt_count), e,
>> + __percpu_arg([var]));
>> }
>
> Should this be in the previous patch?

Yes, it should.
\
 
 \ /
  Last update: 2019-07-22 23:13    [W:0.050 / U:25.456 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site