linux/arch/sh/kernel
Fenghua Yu 5fb7dc37dc define new percpu interface for shared data
per cpu data section contains two types of data.  One set which is
exclusively accessed by the local cpu and the other set which is per cpu,
but also shared by remote cpus.  In the current kernel, these two sets are
not clearely separated out.  This can potentially cause the same data
cacheline shared between the two sets of data, which will result in
unnecessary bouncing of the cacheline between cpus.

One way to fix the problem is to cacheline align the remotely accessed per
cpu data, both at the beginning and at the end.  Because of the padding at
both ends, this will likely cause some memory wastage and also the
interface to achieve this is not clean.

This patch:

Moves the remotely accessed per cpu data (which is currently marked
as ____cacheline_aligned_in_smp) into a different section, where all the data
elements are cacheline aligned. And as such, this differentiates the local
only data and remotely accessed data cleanly.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: <linux-arch@vger.kernel.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:44 -07:00
..
cpu sh: sh-rtc support for SH7709. 2007-07-16 09:51:39 +09:00
timers sh: Preliminary support for the SH-X3 CPU. 2007-06-20 18:27:10 +09:00
vsyscall sh: Fix vsyscall build failure. 2007-05-31 13:44:55 +09:00
asm-offsets.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cf-enabler.c sh: Rip out special unknown machvec. 2007-06-08 02:43:40 +00:00
cpufreq.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
crash_dump.c sh: kdump support. 2007-05-07 02:11:56 +00:00
debugtraps.S sh: Use a jump call table for debug trap handlers. 2007-02-13 10:54:43 +09:00
early_printk.c Fixes and cleanups for earlyprintk aka boot console 2007-05-08 11:15:04 -07:00
entry-common.S sh: Clear UBC when not in use. 2007-03-05 14:13:25 +09:00
head.S sh: Fix .empty_zero_page alignment for PAGE_SIZE > 4096. 2006-12-12 08:53:29 +09:00
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
io_generic.c sh: Revert lazy dcache writeback changes. 2007-03-05 19:46:47 +09:00
io.c sh: Optimized readsl()/writesl() support. 2006-09-27 18:25:24 +09:00
irq.c sh: Update the alignment when 4K stacks are used. 2007-07-12 10:41:52 +09:00
kgdb_jmp.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kgdb_stub.c spelling fixes: arch/sh/ 2007-05-21 14:31:39 +09:00
machine_kexec.c sh: kdump support. 2007-05-07 02:11:56 +00:00
machvec.c sh: Rip out special unknown machvec. 2007-06-08 02:43:40 +00:00
Makefile sh: Fixup machvec support. 2007-06-08 02:43:37 +00:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pm.c sh: APM/PM support. 2006-09-27 16:20:22 +09:00
process.c sh: Tidy up dependencies for SH-2 build. 2007-06-11 15:32:07 +09:00
ptrace.c PTRACE_POKEDATA consolidation 2007-07-17 10:23:03 -07:00
relocate_kernel.S sh: Fixup various PAGE_SIZE == 4096 assumptions. 2006-12-06 10:45:39 +09:00
semaphore.c sh: Fixup some uninitialized spinlocks. 2006-09-27 11:31:32 +09:00
setup.c sh: Preliminary support for the SH-X3 CPU. 2007-06-20 18:27:10 +09:00
sh_bios.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sh_ksyms.c sh: Export div symbols for GCC 4.2 and ST GCC. 2007-07-13 09:30:31 +09:00
signal.c Merge master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6 2007-07-16 10:32:02 -07:00
smp.c sh: trivial build cleanups. 2007-05-31 13:46:21 +09:00
stacktrace.c sh: Fix stacktrace simplification fallout. 2007-05-09 18:55:14 +09:00
sys_sh.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
syscalls.S sh: Wire up mempolicy syscalls. 2007-06-08 02:43:47 +00:00
time.c sh: clockevent/clocksource/hrtimers/nohz TMU support. 2007-05-09 17:33:24 +09:00
topology.c sh: Fix up cpu to node mapping in sysfs. 2007-06-08 02:43:50 +00:00
traps.c Report that kernel is tainted if there was an OOPS 2007-07-17 10:23:02 -07:00
vmlinux.lds.S define new percpu interface for shared data 2007-07-19 10:04:44 -07:00