lkml.org 
[lkml]   [2012]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())
On Mon, 5 Nov 2012, 锟斤拷锟斤拷 wrote:

> I guarantee that x86-64 don't use gs register here. run test again锟斤拷
> Maybe there is some optimizations for __this_cpu_read call on x86-64锟斤拷 not
> sure.

There is no optimization that I know of unless the compiler eliminated the
__this_cpu_read completely. gs: is necessary to perform the implied
relocation in this_cpu_read().

\
 
 \ /
  Last update: 2012-11-05 19:02    [W:2.492 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site