diff options
Diffstat (limited to 'arch/powerpc/include/asm/cache.h')
-rw-r--r-- | arch/powerpc/include/asm/cache.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h index df8e4c407366..e84d1622eeb6 100644 --- a/arch/powerpc/include/asm/cache.h +++ b/arch/powerpc/include/asm/cache.h | |||
@@ -33,7 +33,8 @@ | |||
33 | 33 | ||
34 | #define IFETCH_ALIGN_BYTES (1 << IFETCH_ALIGN_SHIFT) | 34 | #define IFETCH_ALIGN_BYTES (1 << IFETCH_ALIGN_SHIFT) |
35 | 35 | ||
36 | #if defined(__powerpc64__) && !defined(__ASSEMBLY__) | 36 | #if !defined(__ASSEMBLY__) |
37 | #ifdef CONFIG_PPC64 | ||
37 | 38 | ||
38 | struct ppc_cache_info { | 39 | struct ppc_cache_info { |
39 | u32 size; | 40 | u32 size; |
@@ -53,7 +54,18 @@ struct ppc64_caches { | |||
53 | }; | 54 | }; |
54 | 55 | ||
55 | extern struct ppc64_caches ppc64_caches; | 56 | extern struct ppc64_caches ppc64_caches; |
56 | #endif /* __powerpc64__ && ! __ASSEMBLY__ */ | 57 | #else |
58 | static inline u32 l1_cache_shift(void) | ||
59 | { | ||
60 | return L1_CACHE_SHIFT; | ||
61 | } | ||
62 | |||
63 | static inline u32 l1_cache_bytes(void) | ||
64 | { | ||
65 | return L1_CACHE_BYTES; | ||
66 | } | ||
67 | #endif | ||
68 | #endif /* ! __ASSEMBLY__ */ | ||
57 | 69 | ||
58 | #if defined(__ASSEMBLY__) | 70 | #if defined(__ASSEMBLY__) |
59 | /* | 71 | /* |