Optimize andes_clear_page() and andes_copy_page() with prefetch
[linux-2.6/linux-mips.git] / include / asm-arm / proc-fns.h
blob5e5f1e623c273d679c77a74c9800a7a37b734a2f
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 # ifdef CONFIG_CPU_ARM720
59 # ifdef CPU_NAME
60 # undef MULTI_CPU
61 # define MULTI_CPU
62 # else
63 # define CPU_NAME arm720
64 # endif
65 # endif
66 #endif
68 #ifndef MULTI_CPU
69 #undef CPU_INCLUDE_NAME
70 #define CPU_INCLUDE_NAME "asm/cpu-single.h"
71 #endif
73 #include CPU_INCLUDE_NAME
75 #endif /* __KERNEL__ */
77 #if 0
78 * The following is to fool mkdep into generating the correct
79 * dependencies. Without this, it cant figure out that this
80 * file does indeed depend on the cpu-*.h files.
81 #include <asm/cpu-single.h>
82 #include <asm/cpu-multi26.h>
83 #include <asm/cpu-multi32.h>
85 #endif
87 #endif /* __ASM_PROCFNS_H */