aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/dbell.h
diff options
context:
space:
mode:
authorKevin Hao <[email protected]>2016-07-23 14:42:40 +0530
committerMichael Ellerman <[email protected]>2016-08-01 11:15:03 +1000
commitb92a226e528423b8d249dd09bb450d53361fbfcb (patch)
treedd863ac94d80043727c82ab52210f505df5da013 /arch/powerpc/include/asm/dbell.h
parent905259e33d0ca0ee8e0d55783c3eef3402df81b7 (diff)
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 <[email protected]> Signed-off-by: Aneesh Kumar K.V <[email protected]> [mpe: Rename to cpu_has_feature.h and flesh out change log] Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/include/asm/dbell.h')
-rw-r--r--arch/powerpc/include/asm/dbell.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/dbell.h b/arch/powerpc/include/asm/dbell.h
index 5fa6b20eba10..378167377065 100644
--- a/arch/powerpc/include/asm/dbell.h
+++ b/arch/powerpc/include/asm/dbell.h
@@ -16,6 +16,7 @@
#include <linux/threads.h>
#include <asm/ppc-opcode.h>
+#include <asm/cpu_has_feature.h>
#define PPC_DBELL_MSG_BRDCAST (0x04000000)
#define PPC_DBELL_TYPE(x) (((x) & 0xf) << (63-36))