aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/cputable.h
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2008-06-23 21:32:39 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 21:28:25 -0400
commitc5157e587b33b1185cf73207fc53760cf1351430 (patch)
tree996a4e76bae11001a8e97141c617c159dde37ec8 /include/asm-powerpc/cputable.h
parent51c52e86694f19e84600a40f6156889feafd8ae9 (diff)
powerpc: Consolidate CPU and firmware feature fixup macros
The CPU and firmware feature fixup macros are currently spread across three files, firmware.h, cputable.h and asm-compat.h. Consolidate them into their own file, feature-fixups.h Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Acked-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/cputable.h')
-rw-r--r--include/asm-powerpc/cputable.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h
index 3189ac5d0a69..0d96b0284a73 100644
--- a/include/asm-powerpc/cputable.h
+++ b/include/asm-powerpc/cputable.h
@@ -32,6 +32,7 @@
32#ifdef __KERNEL__ 32#ifdef __KERNEL__
33 33
34#include <asm/asm-compat.h> 34#include <asm/asm-compat.h>
35#include <asm/feature-fixups.h>
35 36
36#ifndef __ASSEMBLY__ 37#ifndef __ASSEMBLY__
37 38
@@ -489,18 +490,5 @@ static inline int cpu_has_feature(unsigned long feature)
489 490
490#endif /* !__ASSEMBLY__ */ 491#endif /* !__ASSEMBLY__ */
491 492
492#ifdef __ASSEMBLY__
493
494#define BEGIN_FTR_SECTION_NESTED(label) label:
495#define BEGIN_FTR_SECTION BEGIN_FTR_SECTION_NESTED(97)
496#define END_FTR_SECTION_NESTED(msk, val, label) \
497 MAKE_FTR_SECTION_ENTRY(msk, val, label, __ftr_fixup)
498#define END_FTR_SECTION(msk, val) \
499 END_FTR_SECTION_NESTED(msk, val, 97)
500
501#define END_FTR_SECTION_IFSET(msk) END_FTR_SECTION((msk), (msk))
502#define END_FTR_SECTION_IFCLR(msk) END_FTR_SECTION((msk), 0)
503#endif /* __ASSEMBLY__ */
504
505#endif /* __KERNEL__ */ 493#endif /* __KERNEL__ */
506#endif /* __ASM_POWERPC_CPUTABLE_H */ 494#endif /* __ASM_POWERPC_CPUTABLE_H */