aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-10 06:01:51 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:43 -0500
commit76168c21b78a0bd684d4687d14a2bd76bcf92762 (patch)
treed4ed090163321bc5b92494014ec8ed0e4e794d28 /include
parent01fed9311ab8a724283b3f456c12e573cb51d92b (diff)
sh: More SH-5 cpuinfo tidying.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sh/cpu-sh5/cache.h4
-rw-r--r--include/asm-sh/processor.h2
-rw-r--r--include/asm-sh/processor_32.h1
-rw-r--r--include/asm-sh/processor_64.h10
4 files changed, 12 insertions, 5 deletions
diff --git a/include/asm-sh/cpu-sh5/cache.h b/include/asm-sh/cpu-sh5/cache.h
index 2d1f9c28b923..7eaa8894649f 100644
--- a/include/asm-sh/cpu-sh5/cache.h
+++ b/include/asm-sh/cpu-sh5/cache.h
@@ -19,6 +19,10 @@
19#define SH_CACHE_VALID (1LL<<0) 19#define SH_CACHE_VALID (1LL<<0)
20#define SH_CACHE_UPDATED (1LL<<57) 20#define SH_CACHE_UPDATED (1LL<<57)
21 21
22/* Unimplemented compat bits.. */
23#define SH_CACHE_COMBINED 0
24#define SH_CACHE_ASSOC 0
25
22/* Cache flags */ 26/* Cache flags */
23#define SH_CACHE_MODE_WT (1LL<<0) 27#define SH_CACHE_MODE_WT (1LL<<0)
24#define SH_CACHE_MODE_WB (1LL<<1) 28#define SH_CACHE_MODE_WB (1LL<<1)
diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h
index bf01f486c3e1..b98c882d5036 100644
--- a/include/asm-sh/processor.h
+++ b/include/asm-sh/processor.h
@@ -1,6 +1,8 @@
1#ifndef __ASM_SH_PROCESSOR_H 1#ifndef __ASM_SH_PROCESSOR_H
2#define __ASM_SH_PROCESSOR_H 2#define __ASM_SH_PROCESSOR_H
3 3
4#include <asm/cpu-features.h>
5
4/* 6/*
5 * CPU type and hardware bug flags. Kept separately for each CPU. 7 * CPU type and hardware bug flags. Kept separately for each CPU.
6 * 8 *
diff --git a/include/asm-sh/processor_32.h b/include/asm-sh/processor_32.h
index e10d0ee0c22b..35040fe43e5e 100644
--- a/include/asm-sh/processor_32.h
+++ b/include/asm-sh/processor_32.h
@@ -14,7 +14,6 @@
14#include <asm/types.h> 14#include <asm/types.h>
15#include <asm/cache.h> 15#include <asm/cache.h>
16#include <asm/ptrace.h> 16#include <asm/ptrace.h>
17#include <asm/cpu-features.h>
18 17
19/* 18/*
20 * Default implementation of macro that returns current 19 * Default implementation of macro that returns current
diff --git a/include/asm-sh/processor_64.h b/include/asm-sh/processor_64.h
index 6ad23387d7ba..ecd6b403f7db 100644
--- a/include/asm-sh/processor_64.h
+++ b/include/asm-sh/processor_64.h
@@ -66,12 +66,14 @@ struct sh_cpuinfo {
66 /* TLB info */ 66 /* TLB info */
67 struct tlb_info itlb; 67 struct tlb_info itlb;
68 struct tlb_info dtlb; 68 struct tlb_info dtlb;
69};
70 69
71extern struct sh_cpuinfo boot_cpu_data; 70 unsigned long flags;
71};
72 72
73#define cpu_data (&boot_cpu_data) 73extern struct sh_cpuinfo cpu_data[];
74#define current_cpu_data boot_cpu_data 74#define boot_cpu_data cpu_data[0]
75#define current_cpu_data cpu_data[smp_processor_id()]
76#define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
75 77
76#endif 78#endif
77 79