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
..
2007-05-11 05:38:25 -04:00
2005-04-16 15:20:36 -07:00
2007-07-19 13:48:00 -07:00
2007-05-10 09:35:30 -07:00
2006-06-21 11:19:22 -07:00
2006-06-21 11:19:22 -07:00
2005-04-16 15:20:36 -07:00
2007-12-07 14:28:02 -08:00
2007-07-09 13:37:44 -07:00
2007-07-29 17:09:29 -07:00
2007-05-11 14:55:43 -07:00
2007-11-06 15:40:52 -08:00
2006-12-12 12:00:55 -08:00
2007-10-17 14:28:38 -07:00
2007-05-11 14:55:43 -07:00
2007-12-19 12:30:47 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-12-07 10:48:19 -08:00
2007-05-11 14:55:43 -07:00
2005-04-16 15:20:36 -07:00
2007-05-08 14:51:59 -07:00
2008-01-25 21:07:59 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-06-26 13:33:10 -07:00