]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sparc: Sanitize cpu feature detection and reporting.
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Jul 2011 06:31:26 +0000 (23:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:40 +0000 (18:31 -0700)
commitf1b7f4b6d299fcad9b6bb84d86cef2094613ea75
treea8564e9cfa6020bbcfaa6105f9b6f0e574c896cf
parentb25f76a8fe3230786712d18a83c7a57b7abc6624
sparc: Sanitize cpu feature detection and reporting.

[ Upstream commit ac85fe8b21248054851e05bfaa352562e5b06dd3 ]

Instead of evaluating the cpu features for ELF_HWCAP every exec,
calculate it once at boot time.

Add AV_SPARC_* capability flag bits, compatible with what Solaris
reports to applications.

Report these capabilities once in the kernel log, and also via
/proc/cpuinfo in a new "cpucaps" entry.

If available, fetch the cpu features from the machine description
'hwcap-list' property of the 'cpu' node.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/sparc/include/asm/elf_64.h
arch/sparc/kernel/cpu.c
arch/sparc/kernel/kernel.h
arch/sparc/kernel/setup_64.c