lkml.org 
[lkml]   [2011]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: x86: A fast way to check capabilities of the current cpu
On Fri, Jan 21, 2011 at 11:57:09AM -0600, Christoph Lameter wrote:
> > Hmm? asm/percpu.h gets included by linux/percpu.h, so it would end up
> > in most .c files.
>
> The function is defined in arch/x86/include/asm/percpu.h. At least my
> patches here are that way.
>
> #include "asm/percpu.h" will get you include/asm-generic/percpu.h on
> other arches.

Yeah, I was referring to generic code having visibility to the x86
specific this_cpu op which isn't available on other archs. I don't
feel too strong about it so if you don't like it, just add a comment.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-01-21 19:15    [from the cache]
©2003-2011 Jasper Spaans