sh: More SH-5 cpuinfo tidying.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt 2007-11-10 20:01:51 +09:00
parent 01fed9311a
commit 76168c21b7
4 changed files with 12 additions and 5 deletions

View File

@ -19,6 +19,10 @@
#define SH_CACHE_VALID (1LL<<0) #define SH_CACHE_VALID (1LL<<0)
#define SH_CACHE_UPDATED (1LL<<57) #define SH_CACHE_UPDATED (1LL<<57)
/* Unimplemented compat bits.. */
#define SH_CACHE_COMBINED 0
#define SH_CACHE_ASSOC 0
/* Cache flags */ /* Cache flags */
#define SH_CACHE_MODE_WT (1LL<<0) #define SH_CACHE_MODE_WT (1LL<<0)
#define SH_CACHE_MODE_WB (1LL<<1) #define SH_CACHE_MODE_WB (1LL<<1)

View File

@ -1,6 +1,8 @@
#ifndef __ASM_SH_PROCESSOR_H #ifndef __ASM_SH_PROCESSOR_H
#define __ASM_SH_PROCESSOR_H #define __ASM_SH_PROCESSOR_H
#include <asm/cpu-features.h>
/* /*
* CPU type and hardware bug flags. Kept separately for each CPU. * CPU type and hardware bug flags. Kept separately for each CPU.
* *

View File

@ -14,7 +14,6 @@
#include <asm/types.h> #include <asm/types.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/cpu-features.h>
/* /*
* Default implementation of macro that returns current * Default implementation of macro that returns current

View File

@ -66,12 +66,14 @@ struct sh_cpuinfo {
/* TLB info */ /* TLB info */
struct tlb_info itlb; struct tlb_info itlb;
struct tlb_info dtlb; struct tlb_info dtlb;
unsigned long flags;
}; };
extern struct sh_cpuinfo boot_cpu_data; extern struct sh_cpuinfo cpu_data[];
#define boot_cpu_data cpu_data[0]
#define cpu_data (&boot_cpu_data) #define current_cpu_data cpu_data[smp_processor_id()]
#define current_cpu_data boot_cpu_data #define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
#endif #endif