linux/include/asm-generic
travis@sgi.com acdac87202 percpu: make the asm-generic/percpu.h more "generic"
- add support for PER_CPU_ATTRIBUTES

- fix generic smp percpu_modcopy to use per_cpu_offset() macro.

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>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-01-30 13:32:52 +01:00
..
2008-01-28 23:58:27 -05:00
2007-10-19 11:53:41 -07:00
2008-01-30 13:32:50 +01:00
2007-04-25 22:23:33 -07:00
2005-04-16 15:20:36 -07:00
2007-07-16 09:05:45 -07:00
2007-02-12 09:48:34 -08:00
2005-04-16 15:20:36 -07:00
2006-01-10 08:01:34 -08:00
2007-10-17 08:42:55 -07:00
2007-10-17 08:42:47 -07:00
2006-10-03 23:01:26 +02:00
2005-04-16 15:20:36 -07:00
2005-09-08 14:57:25 -07:00
2007-05-11 08:29:34 -07:00
2006-10-03 23:01:26 +02:00
2005-05-01 08:59:08 -07:00
2005-04-16 15:20:36 -07:00
2007-12-26 22:04:09 -08:00
2005-06-23 09:45:08 -07:00
2005-04-16 15:20:36 -07:00
2007-07-31 15:39:42 -07:00
2005-04-16 15:20:36 -07:00