linux/arch/sparc
Sam Ravnborg 1edc17832d sparc32: use flushi when run-time patching in per_cpu_patch
Davis S. Miller wrote:
"
The way we do that now is overkill.  We only needed to use the MMU
cache ops when we had sun4c around because sun4c lacked support for
the "flush" instruction.

But all sun4m and later chips have it so we can use it
unconditionally.

So in the per_cpu_patch() code, get rid of the cache ops invocation,
and instead execute a "flush %reg" after each of the instruction patch
assignments, where %reg is set to the address of the instruction that
was stored into.

Perhaps take the flushi() definition from asm/cacheflush_64.h and
place it into asm/cacheflush.h, then you can simply use that.
"

Implemented as per suggestion.
Moved run-time patching before we call paging_init(),
so helper methods in paging_init() may utilise run-time patching too.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-05-20 13:33:36 -07:00
..
boot sparc32: drop build time btfixup patching 2012-05-14 14:05:10 -07:00
configs defconfig reduction 2010-08-14 22:26:53 +02:00
include/asm sparc32: use flushi when run-time patching in per_cpu_patch 2012-05-20 13:33:36 -07:00
kernel sparc32: use flushi when run-time patching in per_cpu_patch 2012-05-20 13:33:36 -07:00
lib sparc32: Add ucmpdi2.o to obj-y instead of lib-y. 2012-05-19 15:27:01 -07:00
math-emu Disintegrate asm/system.h for Sparc 2012-03-28 18:30:03 +01:00
mm sparc32: drop unused inline functions in srmmu.c 2012-05-19 23:27:40 -07:00
oprofile sparc: using HZ needs an include of linux/param.h 2009-10-05 00:46:08 -07:00
prom sparc32: drop sun4c support 2012-05-11 19:27:44 -07:00
Kbuild sparc: introduce arch/sparc/Kbuild 2012-05-15 13:18:08 -07:00
Kconfig sparc32: Stop warning about sun4/sun4c in SMP Kconfig option. 2012-05-11 21:01:47 -07:00
Kconfig.debug lib: consolidate DEBUG_STACK_USAGE option 2011-05-25 08:39:54 -07:00
Makefile sparc: introduce arch/sparc/Kbuild 2012-05-15 13:18:08 -07:00