powerpc: use jump label for {cpu,mmu}_has_feature()
Subsystems (3)
v2 cover powerpc: use jump label for {cpu,mmu}_has_feature()
Hi,
v2:
Drop the following two patches as suggested by Ingo and Peter:
jump_label: no need to acquire the jump_label_mutex in jump_lable_init()
jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macros
v1:
I have tried to change the {cpu,mmu}_has_feature() to use jump label two yeas ago [1]. But that codes seem a bit ugly. This is a reimplementation by moving the jump_label_init() much earlier so the jump label can be used in a very earlier stage. Boot test on p4080ds, t2080rdb and powermac (qemu). This patch series is against linux-next.
[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-September/111026.html
Kevin Hao (6):
jump_label: make it possible for the archs to invoke jump_label_init()
much earlier
powerpc: invoke jump_label_init() in a much earlier stage
powerpc: kill mfvtb()
powerpc: move the cpu_has_feature to a separate file
powerpc: use the jump label for cpu_has_feature
powerpc: use jump label for mmu_has_feature
arch/powerpc/include/asm/cacheflush.h | 1 + arch/powerpc/include/asm/cpufeatures.h | 34 ++++++++++++++++++++++++++++++ arch/powerpc/include/asm/cputable.h | 16 +++++++------- arch/powerpc/include/asm/cputime.h | 1 + arch/powerpc/include/asm/dbell.h | 1 + arch/powerpc/include/asm/dcr-native.h | 1 + arch/powerpc/include/asm/mman.h | 1 + arch/powerpc/include/asm/mmu.h | 29 ++++++++++++++++++++++++++ arch/powerpc/include/asm/reg.h | 9 -------- arch/powerpc/include/asm/time.h | 3 ++- arch/powerpc/include/asm/xor.h | 1 + arch/powerpc/kernel/align.c | 1 + arch/powerpc/kernel/cputable.c | 37 +++++++++++++++++++++++++++++++++ arch/powerpc/kernel/irq.c | 1 + arch/powerpc/kernel/process.c | 1 + arch/powerpc/kernel/setup-common.c | 1 + arch/powerpc/kernel/setup_32.c | 5 +++++ arch/powerpc/kernel/setup_64.c | 4 ++++ arch/powerpc/kernel/smp.c | 1 + arch/powerpc/platforms/cell/pervasive.c | 1 + arch/powerpc/xmon/ppc-dis.c | 1 + kernel/jump_label.c | 3 +++ 22 files changed, 135 insertions(+), 18 deletions(-) create mode 100644 arch/powerpc/include/asm/cpufeatures.h
Signature · 1 line
2.1.0
PATCH v2 1/6 jump_label: make it possible for the archs to invoke jump_label_init() much earlier
For some archs (such as powerpc) would want to invoke jump_label_init() in a much earlier stage. So check static_key_initialized in order to make sure this function run only once.
---
v2: No change.
kernel/jump_label.c | 3 +++ 1 file changed, 3 insertions(+)
kernel/jump_label.c +3 -0
@@ -205,6 +205,9 @@ void __init jump_label_init(void)struct static_key *key =NULL ;struct jump_entry *iter; +if (static_key_initialized) +return ; +jump_label_lock ();jump_label_sort_entries (iter_start, iter_stop);
Signature · 1 line
2.1.0
PATCH v2 2/6 powerpc: invoke jump_label_init() in a much earlier stage
In reply to Kevin HaoSo we can use static_key for cpu_has_feature() and mmu_has_feature().
---
v2: No change.
arch/powerpc/kernel/setup_32.c | 2 ++ arch/powerpc/kernel/setup_64.c | 2 ++ 2 files changed, 4 insertions(+)
arch/powerpc/kernel/setup_32.c +2 -0
@@ -113,6 +113,8 @@ notrace void __init machine_init(u64 dt_ptr) {lockdep_init (); +jump_label_init (); +/* Enable early debugging if any specified (see udbg.h) */ udbg_early_init ();
arch/powerpc/kernel/setup_64.c +2 -0
@@ -250,6 +250,8 @@ void __init early_setup(unsigned long dt_ptr)/* Initialize lockdep early or else spinlocks will blow */ lockdep_init (); +jump_label_init (); +/* -------- printk is now safe to use ------- */ /* Enable early debugging if any specified (see udbg.h) */
Signature · 1 line
2.1.0
PATCH v2 3/6 powerpc: kill mfvtb()
In reply to Kevin HaoThis function is only used by get_vtb(). They are almost the same except the reading from the real register. Move the mfspr() to get_vtb() and kill the function mfvtb(). With this, we can eliminate the use of cpu_has_feature() in very core header file like reg.h. This is a preparation for the use of jump label for cpu_has_feature().
---
v2: No change.
arch/powerpc/include/asm/reg.h | 9 --------- arch/powerpc/include/asm/time.h | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-)
arch/powerpc/include/asm/reg.h +0 -9
@@ -1207,15 +1207,6 @@ : "r" ((unsigned long)(v)) \ : "memory") -static inline unsigned long mfvtb (void ) -{ -#ifdef CONFIG_PPC_BOOK3S_64 -if (cpu_has_feature (CPU_FTR_ARCH_207S )) -return mfspr (SPRN_VTB ); -#endif -return 0 ; -} -#ifdef __powerpc64__#if defined(CONFIG_PPC_CELL ) || defined(CONFIG_PPC_FSL_BOOK3E )#define mftb () ({unsigned long rval; \
arch/powerpc/include/asm/time.h +1 -1
@@ -106,7 +106,7 @@ static inline u64 get_vtb(void) {#ifdef CONFIG_PPC_BOOK3S_64 if (cpu_has_feature (CPU_FTR_ARCH_207S )) -return mfvtb (); +return mfspr (SPRN_VTB );#endif return 0 ; }
Signature · 1 line
2.1.0
Michael Ellerman
reviewerRe: [v2,3/6] powerpc: kill mfvtb()
Quoted 5 lines · Kevin Hao
This function is only used by
get_vtb(). They are almost the same except the reading from the real register. Move themfspr()toget_vtb()and kill the functionmfvtb(). With this, we can eliminate the use ofcpu_has_feature()in very core header file likereg.h. This is a preparation for the use of jump label forcpu_has_feature().
I don't mind this change. But can you elaborate a bit on the issue with using cpu_has_feature() in reg.h? Just so I can understand the problem.
I assume you ended up in a big mess of includes when you tried to include jump_label.h from reg.h?
cheers
Re: [v2,3/6] powerpc: kill mfvtb()
Quoted 7 lines · Michael Ellerman
Quoted 5 lines · Kevin Hao
This function is only used by
get_vtb(). They are almost the same except the reading from the real register. Move themfspr()toget_vtb()and kill the functionmfvtb(). With this, we can eliminate the use ofcpu_has_feature()in very core header file likereg.h. This is a preparation for the use of jump label forcpu_has_feature().
Quoted 5 lines
I don't mind this change. But can you elaborate a bit on the issue with using
cpu_has_feature()inreg.h? Just so I can understand the problem.I assume you ended up in a big mess of includes when you tried to include
jump_label.hfromreg.h?
Yes, the "jump_leabel.h" already include "reg.h" implicitly.
from arch/powerpc/include/asm/cache.h:6:0,
from include/linux/cache.h:5,
from include/linux/printk.h:8,
from include/linux/kernel.h:14,
from include/asm-generic/bug.h:13,
from arch/powerpc/include/asm/bug.h:127,
from include/linux/bug.h:4,
from include/linux/jump_label.h:81,
So including "jump_label.h" from "reg.h" will cause a recursive header inclusion problem.
Thanks,
Kevin
PATCH v2 4/6 powerpc: move the cpu_has_feature to a separate file
In reply to Kevin HaoWe plan to use jump label for cpu_has_feature. In order to implement this we need to include the linux/jump_label.h in asm/cputable.h. But it seems that asm/cputable.h is so basic header file for ppc that it is almost included by all the other header files. The including of the linux/jump_label.h will introduces various recursive inclusion. And it is very hard to fix that. So we choose to move the function cpu_has_feature to a separate header file before using the jump label for it. No functional change.
---
v2: No change.
arch/powerpc/include/asm/cacheflush.h | 1 + arch/powerpc/include/asm/cpufeatures.h | 14 ++++++++++++++ arch/powerpc/include/asm/cputable.h | 8 -------- arch/powerpc/include/asm/cputime.h | 1 + arch/powerpc/include/asm/dbell.h | 1 + arch/powerpc/include/asm/dcr-native.h | 1 + arch/powerpc/include/asm/mman.h | 1 + arch/powerpc/include/asm/time.h | 1 + arch/powerpc/include/asm/xor.h | 1 + arch/powerpc/kernel/align.c | 1 + arch/powerpc/kernel/irq.c | 1 + arch/powerpc/kernel/process.c | 1 + arch/powerpc/kernel/setup-common.c | 1 + arch/powerpc/kernel/setup_32.c | 1 + arch/powerpc/kernel/smp.c | 1 + arch/powerpc/platforms/cell/pervasive.c | 1 + arch/powerpc/xmon/ppc-dis.c | 1 + 17 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 arch/powerpc/include/asm/cpufeatures.h
arch/powerpc/include/asm/cacheflush.h +1 -0
@@ -11,6 +11,7 @@#include <linux/mm.h> #include <asm/cputable.h> +#include <asm/cpufeatures.h> /* * No cache flushing is required when address mappings are changed,
arch/powerpc/include/asm/cpufeatures.h new file +14 -0
@@ -0,0 +1,14 @@ +#ifndef __ASM_POWERPC_CPUFEATURES_H +#define __ASM_POWERPC_CPUFEATURES_H + +#include <asm/cputable.h> + +static inline int cpu_has_feature (unsigned long feature) +{ +return (CPU_FTRS_ALWAYS & feature) || + (CPU_FTRS_POSSIBLE + & cur_cpu_spec->cpu_features + & feature); +} + +#endif /* __ASM_POWERPC_CPUFEATURE_H */
arch/powerpc/include/asm/cputable.h +0 -8
@@ -556,14 +556,6 @@ enum { };#endif /* __powerpc64__ */ -static inline int cpu_has_feature (unsigned long feature) -{ -return (CPU_FTRS_ALWAYS & feature) || - (CPU_FTRS_POSSIBLE - & cur_cpu_spec->cpu_features - & feature); -} -#define HBP_NUM 1#endif /* !__ASSEMBLY__ */
arch/powerpc/include/asm/cputime.h +1 -0
@@ -28,6 +28,7 @@ static inline void setup_cputime_one_jiffy(void) { }#include <asm/div64.h> #include <asm/time.h> #include <asm/param.h> +#include <asm/cpufeatures.h> typedef u64 __nocast cputime_t ;typedef u64 __nocast cputime64_t ;
arch/powerpc/include/asm/dbell.h +1 -0
@@ -16,6 +16,7 @@#include <linux/threads.h> #include <asm/ppc-opcode.h> +#include <asm/cpufeatures.h> #define PPC_DBELL_MSG_BRDCAST (0x04000000)#define PPC_DBELL_TYPE (x) (((x) & 0xf) << (63-36))
arch/powerpc/include/asm/dcr-native.h +1 -0
@@ -24,6 +24,7 @@#include <linux/spinlock.h> #include <asm/cputable.h> +#include <asm/cpufeatures.h> typedef struct { unsigned int base;
arch/powerpc/include/asm/mman.h +1 -0
@@ -13,6 +13,7 @@#include <asm/cputable.h> #include <linux/mm.h> +#include <asm/cpufeatures.h> /* * This file is included by linux/mman.h, so we can't use cacl_vm_prot_bits()
arch/powerpc/include/asm/time.h +1 -0
@@ -18,6 +18,7 @@#include <linux/percpu.h> #include <asm/processor.h> +#include <asm/cpufeatures.h> /* time.c */ extern unsigned long tb_ticks_per_jiffy;
arch/powerpc/include/asm/xor.h +1 -0
@@ -23,6 +23,7 @@#ifdef CONFIG_ALTIVEC #include <asm/cputable.h> +#include <asm/cpufeatures.h> void xor_altivec_2 (unsigned long bytes,unsigned long *v1_in,unsigned long *v2_in);
arch/powerpc/kernel/align.c +1 -0
@@ -26,6 +26,7 @@#include <asm/emulated_ops.h> #include <asm/switch_to.h> #include <asm/disassemble.h> +#include <asm/cpufeatures.h> struct aligninfo {unsigned char len;
arch/powerpc/kernel/irq.c +1 -0
@@ -74,6 +74,7 @@#endif #define CREATE_TRACE_POINTS #include <asm/trace.h> +#include <asm/cpufeatures.h> DEFINE_PER_CPU_SHARED_ALIGNED (irq_cpustat_t, irq_stat);EXPORT_PER_CPU_SYMBOL (irq_stat);
arch/powerpc/kernel/process.c +1 -0
@@ -57,6 +57,7 @@#include <asm/code-patching.h> #include <linux/kprobes.h> #include <linux/kdebug.h> +#include <asm/cpufeatures.h> /* Transactional Memory debug */ #ifdef TM_DEBUG_SW
arch/powerpc/kernel/setup-common.c +1 -0
@@ -61,6 +61,7 @@#include <asm/cputhreads.h> #include <mm/mmu_decl.h> #include <asm/fadump.h> +#include <asm/cpufeatures.h> #ifdef DEBUG #include <asm/udbg.h>
arch/powerpc/kernel/setup_32.c +1 -0
@@ -38,6 +38,7 @@#include <asm/udbg.h> #include <asm/mmu_context.h> #include <asm/epapr_hcalls.h> +#include <asm/cpufeatures.h> #define DBG(fmt...)
arch/powerpc/kernel/smp.c +1 -0
@@ -53,6 +53,7 @@#include <asm/vdso.h> #include <asm/debug.h> #include <asm/kexec.h> +#include <asm/cpufeatures.h> #ifdef DEBUG #include <asm/udbg.h>
arch/powerpc/platforms/cell/pervasive.c +1 -0
@@ -35,6 +35,7 @@#include <asm/pgtable.h> #include <asm/reg.h> #include <asm/cell-regs.h> +#include <asm/cpufeatures.h> #include "pervasive.h"
arch/powerpc/xmon/ppc-dis.c +1 -0
@@ -20,6 +20,7 @@ along with this file; see the file COPYING. If not, write to the FreeSoftware Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include <asm/cputable.h> +#include <asm/cpufeatures.h> #include "nonstdio.h" #include "ansidecl.h" #include "ppc.h"
Signature · 1 line
2.1.0
PATCH v2 5/6 powerpc: use the jump label for cpu_has_feature
In reply to Kevin HaoThe cpu features are fixed once the probe of cpu features are done. And the function cpu_has_feature() does be used in some hot path. The checking of the cpu features for each time of invoking of cpu_has_feature() seems suboptimal. This tries to reduce this overhead of this check by using jump label.
The generated assemble code of the following c program:
if (cpu_has_feature(CPU_FTR_XXX)) xxx()
Before:
lis r9,-16230 lwz r9,12324(r9) lwz r9,12(r9) andi. r10,r9,512
beqlr-
After:
nop if CPU_FTR_XXX is enabled
b xxx if CPU_FTR_XXX is not enabled
---
v2: Use the open-coded definition and initialization for cpu_feat_keys[].
arch/powerpc/include/asm/cpufeatures.h | 20 ++++++++++++++++++++ arch/powerpc/include/asm/cputable.h | 8 ++++++++ arch/powerpc/kernel/cputable.c | 20 ++++++++++++++++++++ arch/powerpc/kernel/setup_32.c | 1 + arch/powerpc/kernel/setup_64.c | 1 + 5 files changed, 50 insertions(+)
arch/powerpc/include/asm/cpufeatures.h +20 -0
@@ -3,6 +3,25 @@#include <asm/cputable.h> +#ifdef CONFIG_JUMP_LABEL +#include <linux/jump_label.h> + +extern struct static_key_true cpu_feat_keys[MAX_CPU_FEATURES ]; + +static inline int cpu_has_feature (unsigned long feature) +{ +int i; + +if (CPU_FTRS_ALWAYS & feature) +return 1 ; + +if (!(CPU_FTRS_POSSIBLE & feature)) +return 0 ; + + i =__builtin_ctzl (feature); +return static_branch_likely (&cpu_feat_keys[i]); +} +#else static inline int cpu_has_feature (unsigned long feature) { return (CPU_FTRS_ALWAYS & feature) ||
@@ -10,5 +29,6 @@ static inline int cpu_has_feature(unsigned long feature) & cur_cpu_spec->cpu_features & feature); } +#endif #endif /* __ASM_POWERPC_CPUFEATURE_H */
arch/powerpc/include/asm/cputable.h +8 -0
@@ -114,6 +114,12 @@ extern void do_feature_fixups(unsigned long value, void *fixup_start,extern const char *powerpc_base_platform; +#ifdef CONFIG_JUMP_LABEL +extern void cpu_feat_keys_init (void ); +#else +static inline void cpu_feat_keys_init (void ) { } +#endif +/* TLB flush actions. Used as argument to cpu_spec.flush_tlb() hook */ enum {TLB_INVAL_SCOPE_GLOBAL =0 ,/* invalidate all TLBs */
@@ -124,6 +130,8 @@ enum {/* CPU kernel features */ +#define MAX_CPU_FEATURES (8 * sizeof(((struct cpu_spec *)0)->cpu_features)) +/* Retain the 32b definitions all use bottom half of word */ #define CPU_FTR_COHERENT_ICACHE ASM_CONST(0x00000001)#define CPU_FTR_L2CR ASM_CONST(0x00000002)
arch/powerpc/kernel/cputable.c +20 -0
@@ -15,6 +15,7 @@#include <linux/threads.h> #include <linux/init.h> #include <linux/export.h> +#include <linux/jump_label.h> #include <asm/oprofile_impl.h> #include <asm/cputable.h>
@@ -2195,3 +2196,22 @@ struct cpu_spec * __init identify_cpu(unsigned long offset, unsigned int pvr)return NULL ; } + +#ifdef CONFIG_JUMP_LABEL +struct static_key_true cpu_feat_keys[MAX_CPU_FEATURES ] = { + [0 ...MAX_CPU_FEATURES -1 ] =STATIC_KEY_TRUE_INIT +}; +EXPORT_SYMBOL_GPL (cpu_feat_keys); + +void __init cpu_feat_keys_init (void ) +{ +int i; + +for (i =0 ; i <MAX_CPU_FEATURES ; i++) { +unsigned long f =1ul << i; + +if (!(cur_cpu_spec->cpu_features & f)) +static_branch_disable (&cpu_feat_keys[i]); + } +} +#endif
arch/powerpc/kernel/setup_32.c +1 -0
@@ -115,6 +115,7 @@ notrace void __init machine_init(u64 dt_ptr)lockdep_init ();jump_label_init (); +cpu_feat_keys_init ();/* Enable early debugging if any specified (see udbg.h) */ udbg_early_init ();
arch/powerpc/kernel/setup_64.c +1 -0
@@ -251,6 +251,7 @@ void __init early_setup(unsigned long dt_ptr)lockdep_init ();jump_label_init (); +cpu_feat_keys_init ();/* -------- printk is now safe to use ------- */
Signature · 1 line
2.1.0
PATCH v2 6/6 powerpc: use jump label for mmu_has_feature
In reply to Kevin HaoThe mmu features are fixed once the probe of mmu features are done. And the function mmu_has_feature() does be used in some hot path. The checking of the mmu features for each time of invoking of mmu_has_feature() seems suboptimal. This tries to reduce this overhead of this check by using jump label.
The generated assemble code of the following c program:
if (mmu_has_feature(MMU_FTR_XXX)) xxx() Before: lis r9,-16230 lwz r9,12324(r9) lwz r9,24(r9) andi. r10,r9,16
beqlr+
After:
nop if MMU_FTR_XXX is enabled
b xxx if MMU_FTR_XXX is not enabled
---
v2: Use the open-coded definition and initialization for mmu_feat_keys[].
arch/powerpc/include/asm/mmu.h | 29 +++++++++++++++++++++++++++++ arch/powerpc/kernel/cputable.c | 17 +++++++++++++++++ arch/powerpc/kernel/setup_32.c | 1 + arch/powerpc/kernel/setup_64.c | 1 + 4 files changed, 48 insertions(+)
arch/powerpc/include/asm/mmu.h +29 -0
@@ -109,6 +109,34 @@DECLARE_PER_CPU (int, next_tlbcam_idx);#endif +#ifdef CONFIG_JUMP_LABEL +#include <linux/jump_label.h> + +#define MAX_MMU_FEATURES (8 * sizeof(((struct cpu_spec *)0)->mmu_features)) + +extern struct static_key_true mmu_feat_keys[MAX_MMU_FEATURES ]; + +extern void mmu_feat_keys_init (void ); + +static inline int mmu_has_feature (unsigned long feature) +{ +int i; + + i =__builtin_ctzl (feature); +return static_branch_likely (&mmu_feat_keys[i]); +} + +static inline void mmu_clear_feature (unsigned long feature) +{ +int i; + + i =__builtin_ctzl (feature); + cur_cpu_spec->mmu_features &= ~feature; +static_branch_disable (&mmu_feat_keys[i]); +} +#else +static inline void mmu_feat_keys_init (void ) { } +static inline int mmu_has_feature (unsigned long feature) {return (cur_cpu_spec->mmu_features & feature);
@@ -118,6 +146,7 @@ static inline void mmu_clear_feature(unsigned long feature) { cur_cpu_spec->mmu_features &= ~feature; } +#endif extern unsigned int __start___mmu_ftr_fixup, __stop___mmu_ftr_fixup;
arch/powerpc/kernel/cputable.c +17 -0
@@ -2214,4 +2214,21 @@ void __init cpu_feat_keys_init(void) static_branch_disable(&cpu_feat_keys[i]); } } + +struct static_key_true mmu_feat_keys[MAX_MMU_FEATURES ] = { + [0 ...MAX_MMU_FEATURES -1 ] =STATIC_KEY_TRUE_INIT +}; +EXPORT_SYMBOL_GPL (mmu_feat_keys); + +void __init mmu_feat_keys_init (void ) +{ +int i; + +for (i =0 ; i <MAX_MMU_FEATURES ; i++) { +unsigned long f =1ul << i; + +if (!(cur_cpu_spec->mmu_features & f)) +static_branch_disable (&mmu_feat_keys[i]); + } +}#endif
arch/powerpc/kernel/setup_32.c +1 -0
@@ -116,6 +116,7 @@ notrace void __init machine_init(u64 dt_ptr)jump_label_init ();cpu_feat_keys_init (); +mmu_feat_keys_init ();/* Enable early debugging if any specified (see udbg.h) */ udbg_early_init ();
arch/powerpc/kernel/setup_64.c +1 -0
@@ -252,6 +252,7 @@ void __init early_setup(unsigned long dt_ptr)jump_label_init ();cpu_feat_keys_init (); +mmu_feat_keys_init ();/* -------- printk is now safe to use ------- */
Signature · 1 line
2.1.0
Quoted 41 lines · Kevin Hao
Hi,
v2:
Drop the following two patches as suggested by Ingo and Peter:
jump_label: no need to acquire thejump_label_mutexinjump_lable_init()
jump_label: introduce DEFINE_STATIC_KEY_{TRUE,FALSE}_ARRAY macrosv1:
I have tried to change the {cpu,mmu}_has_feature() to use jump label two yeas ago [1]. But that codes seem a bit ugly. This is a reimplementation by moving thejump_label_init()much earlier so the jump label can be used in a very earlier stage. Boot test on p4080ds, t2080rdb and powermac (qemu). This patch series is against linux-next.[1] https://lists.ozlabs.org/pipermail/linuxppc-dev/2013-September/111026.html
Kevin Hao (6):
jump_label: make it possible for the archs to invokejump_label_init()
much earlier
powerpc: invokejump_label_init()in a much earlier stage
powerpc: killmfvtb()
powerpc: move thecpu_has_featureto a separate file
powerpc: use the jump label forcpu_has_feature
powerpc: use jump label formmu_has_featurearch/powerpc/include/asm/cacheflush.h | 1 + arch/powerpc/include/asm/cpufeatures.h | 34 ++++++++++++++++++++++++++++++ arch/powerpc/include/asm/cputable.h | 16 +++++++------- arch/powerpc/include/asm/cputime.h | 1 + arch/powerpc/include/asm/dbell.h | 1 + arch/powerpc/include/asm/dcr-native.h | 1 + arch/powerpc/include/asm/mman.h | 1 + arch/powerpc/include/asm/mmu.h | 29 ++++++++++++++++++++++++++ arch/powerpc/include/asm/reg.h | 9 -------- arch/powerpc/include/asm/time.h | 3 ++- arch/powerpc/include/asm/xor.h | 1 + arch/powerpc/kernel/align.c | 1 + arch/powerpc/kernel/cputable.c | 37 +++++++++++++++++++++++++++++++++ arch/powerpc/kernel/irq.c | 1 + arch/powerpc/kernel/process.c | 1 + arch/powerpc/kernel/setup-common.c | 1 +
Quoted 8 lines
arch/powerpc/kernel/setup_32.c | 5 +++++ arch/powerpc/kernel/setup_64.c | 4 ++++ arch/powerpc/kernel/smp.c | 1 + arch/powerpc/platforms/cell/pervasive.c | 1 + arch/powerpc/xmon/ppc-dis.c | 1 + kernel/jump_label.c | 3 +++ 22 files changed, 135 insertions(+), 18 deletions(-) create mode 100644 arch/powerpc/include/asm/cpufeatures.h
Looks good to me!
Thanks,
Ingo