lkml.org 
[lkml]   [2007]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 03/10] percpu: Make the asm-generic/percpu.h more "generic"
From
From: travis@sgi.com
Date: Thu, 27 Dec 2007 16:10:49 -0800

> V1->V2:
> - add support for PER_CPU_ATTRIBUTES
>
> Add the ability to use generic/percpu even if the arch needs to override
> several aspects of its operations. This will enable the use of generic
> percpu.h for all arches.
>
> An arch may define:
>
> __per_cpu_offset Do not use the generic pointer array. Arch must
> define per_cpu_offset(cpu) (used by x86_64, s390).
>
> __my_cpu_offset Can be defined to provide an optimized way to determine
> the offset for variables of the currently executing
> processor. Used by ia64, x86_64, x86_32, sparc64, s/390.
>
> SHIFT_PTR(ptr, offset) If an arch defines it then special handling
> of pointer arithmentic may be implemented. Used
> by s/390.
>
>
> (Some of these special percpu arch implementations may be later consolidated
> so that there are less cases to deal with.)
>
> Cc: Rusty Russell <rusty@rustcorp.com.au>
> Cc: Andi Kleen <ak@suse.de>
> Signed-off-by: Christoph Lameter <clameter@sgi.com>
> Signed-off-by: Mike Travis <travis@sgi.com>

Acked-by: David S. Miller <davem@davemloft.net>


\
 
 \ /
  Last update: 2007-12-28 01:23    [W:0.202 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site