Merge with Linux 2.3.40.
[linux-2.6/linux-mips.git] / include / asm-arm / proc-fns.h
blob703f653b8f5c3bd11bc70574f28640c1a0eadb8d
1 /*
2 * linux/include/asm-arm/proc-fns.h
4 * Copyright (C) 1997-1999 Russell King
5 */
6 #ifndef __ASM_PROCFNS_H
7 #define __ASM_PROCFNS_H
9 #ifdef __KERNEL__
11 #include <linux/config.h>
14 * Work out if we need multiple CPU support
16 #undef MULTI_CPU
17 #undef CPU_NAME
19 #ifdef CONFIG_CPU_26
20 # define CPU_INCLUDE_NAME "asm/cpu-multi26.h"
21 # define MULTI_CPU
22 #endif
24 #ifdef CONFIG_CPU_32
25 # define CPU_INCLUDE_NAME "asm/cpu-multi32.h"
26 # ifdef CONFIG_CPU_ARM6
27 # ifdef CPU_NAME
28 # undef MULTI_CPU
29 # define MULTI_CPU
30 # else
31 # define CPU_NAME arm6
32 # endif
33 # endif
34 # ifdef CONFIG_CPU_ARM7
35 # ifdef CPU_NAME
36 # undef MULTI_CPU
37 # define MULTI_CPU
38 # else
39 # define CPU_NAME arm7
40 # endif
41 # endif
42 # ifdef CONFIG_CPU_SA110
43 # ifdef CPU_NAME
44 # undef MULTI_CPU
45 # define MULTI_CPU
46 # else
47 # define CPU_NAME sa110
48 # endif
49 # endif
50 # ifdef CONFIG_CPU_SA1100
51 # ifdef CPU_NAME
52 # undef MULTI_CPU
53 # define MULTI_CPU
54 # else
55 # define CPU_NAME sa1100
56 # endif
57 # endif
58 #endif
60 #ifndef MULTI_CPU
61 #undef CPU_INCLUDE_NAME
62 #define CPU_INCLUDE_NAME "asm/cpu-single.h"
63 #endif
65 #include CPU_INCLUDE_NAME
67 #endif /* __KERNEL__ */
69 #if 0
70 * The following is to fool mkdep into generating the correct
71 * dependencies. Without this, it cant figure out that this
72 * file does indeed depend on the cpu-*.h files.
73 #include <asm/cpu-single.h>
74 #include <asm/cpu-multi26.h>
75 #include <asm/cpu-multi32.h>
77 #endif
79 #endif /* __ASM_PROCFNS_H */