X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sh%2Fprocessor.h;h=c4904797d6dfe19bbb0a524384fbccece72d2bc1;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=922c927478c1d4237e2234be4819b7c1e6ac7f59;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h index 922c92747..c4904797d 100644 --- a/include/asm-sh/processor.h +++ b/include/asm-sh/processor.h @@ -7,6 +7,7 @@ #ifndef __ASM_SH_PROCESSOR_H #define __ASM_SH_PROCESSOR_H +#ifdef __KERNEL__ #include #include @@ -43,6 +44,7 @@ enum cpu_type { /* SH-4 types */ CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R, CPU_SH7760, CPU_ST40RA, CPU_ST40GX1, CPU_SH4_202, CPU_SH4_501, + CPU_SH73180, /* Unknown subtype */ CPU_SH_NONE @@ -137,6 +139,7 @@ union sh_fpu_union { #define CPU_HAS_P2_FLUSH_BUG 0x0002 /* Need to flush the cache in P2 area */ #define CPU_HAS_MMU_PAGE_ASSOC 0x0004 /* SH3: TLB way selection bit support */ #define CPU_HAS_DSP 0x0008 /* SH-DSP: DSP support */ +#define CPU_HAS_PERF_COUNTER 0x0010 /* Hardware performance counters */ struct thread_struct { unsigned long sp; @@ -188,12 +191,6 @@ extern void release_thread(struct task_struct *); */ extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); -/* - * Bus types - */ -#define MCA_bus 0 -#define MCA_bus__is_a_macro /* for versions in ksyms.c */ - /* Copy and release all segment info associated with a VM */ #define copy_segments(p, mm) do { } while(0) #define release_segments(mm) do { } while(0) @@ -274,4 +271,5 @@ extern unsigned long get_wchan(struct task_struct *p); #define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory") #define cpu_relax() do { } while (0) +#endif /* __KERNEL__ */ #endif /* __ASM_SH_PROCESSOR_H */