diff options
| author | Kumar Gala <galak@somerset.sps.mot.com> | 2004-11-10 21:31:19 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-10 21:31:19 -0800 |
| commit | b99b64df70cd035b3aec6dd7b48529a62fb1c1e9 (patch) | |
| tree | 6a03abd9c08fd89fa7ded05f8a58252f2bc5a13d /include | |
| parent | 8d62a3ffeaebd0b3b234153d780251f6c0d815ae (diff) | |
[PATCH] ppc32: add performance counters to cpu_spec
Adds the number of performance monitor counters each PowerPC processor has
to the cpu table. Makes oprofile support a bit cleaner since we dont need
a case statement on processor version to determine the number of counters.
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-ppc/cputable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-ppc/cputable.h b/include/asm-ppc/cputable.h index fcdb87db389b..34f37ab61324 100644 --- a/include/asm-ppc/cputable.h +++ b/include/asm-ppc/cputable.h @@ -21,6 +21,9 @@ #define PPC_FEATURE_HAS_MMU 0x04000000 #define PPC_FEATURE_HAS_4xxMAC 0x02000000 #define PPC_FEATURE_UNIFIED_CACHE 0x01000000 +#define PPC_FEATURE_HAS_SPE 0x00800000 +#define PPC_FEATURE_HAS_EFP_SINGLE 0x00400000 +#define PPC_FEATURE_HAS_EFP_DOUBLE 0x00200000 #ifdef __KERNEL__ @@ -46,6 +49,9 @@ struct cpu_spec { unsigned int icache_bsize; unsigned int dcache_bsize; + /* number of performance monitor counters */ + unsigned int num_pmcs; + /* this is called to initialize various CPU bits like L1 cache, * BHT, SPD, etc... from head.S before branching to identify_machine */ |
