diff options
author | David S. Miller <davem@davemloft.net> | 2011-07-29 02:31:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-29 02:31:26 -0400 |
commit | ac85fe8b21248054851e05bfaa352562e5b06dd3 (patch) | |
tree | 4c666e39ff9383180ea33e1246af5eafaac64954 /arch/sparc/kernel/kernel.h | |
parent | 55f9c40ff632d03c527d6a6ceddcda0a224587a6 (diff) |
sparc: Sanitize cpu feature detection and reporting.
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>
Diffstat (limited to 'arch/sparc/kernel/kernel.h')
-rw-r--r-- | arch/sparc/kernel/kernel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/kernel/kernel.h b/arch/sparc/kernel/kernel.h index 6f6544cfa0ef..8325d7759381 100644 --- a/arch/sparc/kernel/kernel.h +++ b/arch/sparc/kernel/kernel.h | |||
@@ -10,6 +10,12 @@ extern const char *sparc_pmu_type; | |||
10 | extern unsigned int fsr_storage; | 10 | extern unsigned int fsr_storage; |
11 | extern int ncpus_probed; | 11 | extern int ncpus_probed; |
12 | 12 | ||
13 | #ifdef CONFIG_SPARC64 | ||
14 | /* setup_64.c */ | ||
15 | struct seq_file; | ||
16 | extern void cpucap_info(struct seq_file *); | ||
17 | #endif | ||
18 | |||
13 | #ifdef CONFIG_SPARC32 | 19 | #ifdef CONFIG_SPARC32 |
14 | /* cpu.c */ | 20 | /* cpu.c */ |
15 | extern void cpu_probe(void); | 21 | extern void cpu_probe(void); |