Blackfin: rewrite resync_core_{i,d}cache() SMP logic to avoid per_cpu data
authorGraf Yang <graf.yang@analog.com>
Mon, 1 Feb 2010 06:07:50 +0000 (06:07 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Mar 2010 05:30:50 +0000 (00:30 -0500)
commit718340f62900ed44046d2b0f74d0dec7cf844194
tree974cf52038196598c653902de3da83ca96ee3792
parent6c2b7072a7035837998da38809f98e4182e4c41c
Blackfin: rewrite resync_core_{i,d}cache() SMP logic to avoid per_cpu data

This functions are implicitly called by core functions like cpu_relax(),
and since those functions may be called early on before common code has
initialized the per-cpu data area, we need to tweak the stats gathering.
Now the statistics are maintained in common bss which makes these funcs
safe to use as soon as the C runtime env is setup.

Signed-off-by: Graf Yang <graf.yang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/cpu.h
arch/blackfin/include/asm/smp.h
arch/blackfin/kernel/setup.c
arch/blackfin/mach-common/smp.c