[SPARC64]: Do not assume sun4v chips have load-twin/store-init support.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 9 Aug 2007 00:11:39 +0000 (17:11 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 9 Aug 2007 00:33:45 +0000 (17:33 -0700)
commit6c70b6fc7b6fc321636a014082d9e32333da1f80
treeff0e52bb7ba43b058b7cbb88b952fd268fbe3ad2
parent68c9f9fd336dc7e793cecad25f8ac40ccaa7a256
[SPARC64]: Do not assume sun4v chips have load-twin/store-init support.

Check the cpu type in the OBP device tree before committing to
using the optimized Niagara memcpy and memset implementation.

If we don't recognize the cpu type, use a completely generic
version.

Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
arch/sparc64/kernel/cpu.c
arch/sparc64/kernel/head.S
arch/sparc64/kernel/sparc64_ksyms.c
arch/sparc64/lib/GENbzero.S [new file with mode: 0644]
arch/sparc64/lib/GENcopy_from_user.S [new file with mode: 0644]
arch/sparc64/lib/GENcopy_to_user.S [new file with mode: 0644]
arch/sparc64/lib/GENmemcpy.S [new file with mode: 0644]
arch/sparc64/lib/GENpage.S [new file with mode: 0644]
arch/sparc64/lib/GENpatch.S [new file with mode: 0644]
arch/sparc64/lib/Makefile
include/asm-sparc64/oplib.h
include/asm-sparc64/spitfire.h
include/asm-sparc64/xor.h