diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-08-01 01:20:30 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-08-03 22:02:00 -0400 |
commit | b8b572e1015f81b4e748417be2629dfe51ab99f9 (patch) | |
tree | 7df58667d5ed71d6c8f8f4ce40ca16b6fb776d0b /include/asm-powerpc/cache.h | |
parent | 2b12a4c524812fb3f6ee590a02e65b95c8c32229 (diff) |
powerpc: Move include files to arch/powerpc/include/asm
from include/asm-powerpc. This is the result of a
mkdir arch/powerpc/include/asm
git mv include/asm-powerpc/* arch/powerpc/include/asm
Followed by a few documentation/comment fixups and a couple of places
where <asm-powepc/...> was being used explicitly. Of the latter only
one was outside the arch code and it is a driver only built for powerpc.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/cache.h')
-rw-r--r-- | include/asm-powerpc/cache.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/asm-powerpc/cache.h b/include/asm-powerpc/cache.h deleted file mode 100644 index 81de6eb3455d..000000000000 --- a/include/asm-powerpc/cache.h +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | #ifndef _ASM_POWERPC_CACHE_H | ||
2 | #define _ASM_POWERPC_CACHE_H | ||
3 | |||
4 | #ifdef __KERNEL__ | ||
5 | |||
6 | |||
7 | /* bytes per L1 cache line */ | ||
8 | #if defined(CONFIG_8xx) || defined(CONFIG_403GCX) | ||
9 | #define L1_CACHE_SHIFT 4 | ||
10 | #define MAX_COPY_PREFETCH 1 | ||
11 | #elif defined(CONFIG_PPC_E500MC) | ||
12 | #define L1_CACHE_SHIFT 6 | ||
13 | #define MAX_COPY_PREFETCH 4 | ||
14 | #elif defined(CONFIG_PPC32) | ||
15 | #define L1_CACHE_SHIFT 5 | ||
16 | #define MAX_COPY_PREFETCH 4 | ||
17 | #else /* CONFIG_PPC64 */ | ||
18 | #define L1_CACHE_SHIFT 7 | ||
19 | #endif | ||
20 | |||
21 | #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) | ||
22 | |||
23 | #define SMP_CACHE_BYTES L1_CACHE_BYTES | ||
24 | |||
25 | #if defined(__powerpc64__) && !defined(__ASSEMBLY__) | ||
26 | struct ppc64_caches { | ||
27 | u32 dsize; /* L1 d-cache size */ | ||
28 | u32 dline_size; /* L1 d-cache line size */ | ||
29 | u32 log_dline_size; | ||
30 | u32 dlines_per_page; | ||
31 | u32 isize; /* L1 i-cache size */ | ||
32 | u32 iline_size; /* L1 i-cache line size */ | ||
33 | u32 log_iline_size; | ||
34 | u32 ilines_per_page; | ||
35 | }; | ||
36 | |||
37 | extern struct ppc64_caches ppc64_caches; | ||
38 | #endif /* __powerpc64__ && ! __ASSEMBLY__ */ | ||
39 | |||
40 | #if !defined(__ASSEMBLY__) | ||
41 | #define __read_mostly __attribute__((__section__(".data.read_mostly"))) | ||
42 | #endif | ||
43 | |||
44 | #endif /* __KERNEL__ */ | ||
45 | #endif /* _ASM_POWERPC_CACHE_H */ | ||