[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1101211155150.15692@router.home>
Date: Fri, 21 Jan 2011 11:57:09 -0600 (CST)
From: Christoph Lameter <cl@...ux.com>
To: Tejun Heo <tj@...nel.org>
cc: "H. Peter Anvin" <hpa@...or.com>,
Pekka Enbeerg <penberg@...helsinki.fi>,
linux-kernel@...r.kernel.org,
Eric Dumazet <eric.dumazet@...il.com>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
akpm@...ux-foundation.org
Subject: Re: x86: A fast way to check capabilities of the current cpu
On Fri, 21 Jan 2011, Tejun Heo wrote:
> On Fri, Jan 21, 2011 at 11:46:04AM -0600, Christoph Lameter wrote:
> > > Oh, you're right. Sorry about that. Can you please then add a
> > > comment noting that the operation is x86 only? Maybe prefix it with
> > > x86_?
> >
> > For a function defined in an specific include file and only used in arch
> > specific code?
>
> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists