From 6c4359aa7284bf7bc6d9f83a2c6dceb406726388 Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Fri, 22 Jan 2010 13:25:03 +0100 Subject: sparc: leon3: Added CPU count and frequency detection. Signed-off-by: Daniel Hellstrom --- arch/sparc/include/asm/leon3.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'arch/sparc/include/asm/leon3.h') diff --git a/arch/sparc/include/asm/leon3.h b/arch/sparc/include/asm/leon3.h index 6ee1ea8744..a9f32b9b90 100644 --- a/arch/sparc/include/asm/leon3.h +++ b/arch/sparc/include/asm/leon3.h @@ -19,4 +19,17 @@ * ctrl, memory controllers etc. */ + +#ifndef __ASSEMBLER__ +/* The frequency of the CPU */ +extern unsigned int leon_cpu_freq; + +/* Number of LEON processors in system */ +extern int leon_cpu_cnt; + +/* Ver/subversion of CPU */ +extern int leon_ver; + +#endif /* __ASSEMBLER__ */ + #endif -- cgit