[lkml]   [2009]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] FRV: Fix the section attribute on UP DECLARE_PER_CPU()

On Tue, 14 Apr 2009, David Howells wrote:
> Agreed, it would be nice. However, x86 requires it to be declared in the
> middle of asm/percpu.h (ie: in asm-generic/percpu.h).

Hmm. Why not move it all above the '#include <asm/percpu.h>'?

Sure, then the odd architectures (read: ia64) that actually want to
re-define things like PER_CPU_BASE_SECTION would have to now do

#define PER_CPU_BASE_SECTION ".data.percpu"

but wouldn't that all actually be much CLEANER than the insane crap we do

But yeah, I didn't look at all the details. It _looked_ pretty
straightforward to just move the DEFINE/DECLARE stuff up, but there may
well be something subtle I'm missing.


 \ /
  Last update: 2009-04-14 20:13    [W:0.075 / U:2.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site