powerpc: Move cpu_has_feature() to a separate file
We 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. Unfortunately if we do that it leads to an include loop. The root of the problem seems to be that reg.h needs cputable.h (for CPU_FTRs), and then cputable.h via jump_label.h eventually pulls in hw_irq.h which needs reg.h (for MSR_EE). So move cpu_has_feature() to a separate file on its own. Signed-off-by:Kevin Hao <haokexin@gmail.com> Signed-off-by:
Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> [mpe: Rename to cpu_has_feature.h and flesh out change log] Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/book3s/64/mmu-hash.h 1 addition, 0 deletionsarch/powerpc/include/asm/book3s/64/mmu-hash.h
- arch/powerpc/include/asm/cacheflush.h 1 addition, 0 deletionsarch/powerpc/include/asm/cacheflush.h
- arch/powerpc/include/asm/cpu_has_feature.h 20 additions, 0 deletionsarch/powerpc/include/asm/cpu_has_feature.h
- arch/powerpc/include/asm/cputable.h 0 additions, 11 deletionsarch/powerpc/include/asm/cputable.h
- arch/powerpc/include/asm/cputime.h 1 addition, 0 deletionsarch/powerpc/include/asm/cputime.h
- arch/powerpc/include/asm/dbell.h 1 addition, 0 deletionsarch/powerpc/include/asm/dbell.h
- arch/powerpc/include/asm/dcr-native.h 1 addition, 0 deletionsarch/powerpc/include/asm/dcr-native.h
- arch/powerpc/include/asm/mman.h 1 addition, 0 deletionsarch/powerpc/include/asm/mman.h
- arch/powerpc/include/asm/time.h 1 addition, 0 deletionsarch/powerpc/include/asm/time.h
- arch/powerpc/include/asm/xor.h 1 addition, 0 deletionsarch/powerpc/include/asm/xor.h
- arch/powerpc/kernel/align.c 1 addition, 0 deletionsarch/powerpc/kernel/align.c
- arch/powerpc/kernel/irq.c 1 addition, 0 deletionsarch/powerpc/kernel/irq.c
- arch/powerpc/kernel/process.c 1 addition, 0 deletionsarch/powerpc/kernel/process.c
- arch/powerpc/kernel/setup-common.c 1 addition, 0 deletionsarch/powerpc/kernel/setup-common.c
- arch/powerpc/kernel/setup_32.c 1 addition, 0 deletionsarch/powerpc/kernel/setup_32.c
- arch/powerpc/kernel/smp.c 1 addition, 0 deletionsarch/powerpc/kernel/smp.c
- arch/powerpc/platforms/cell/pervasive.c 1 addition, 0 deletionsarch/powerpc/platforms/cell/pervasive.c
- arch/powerpc/xmon/ppc-dis.c 1 addition, 0 deletionsarch/powerpc/xmon/ppc-dis.c
Loading
Please register or sign in to comment