summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorNaveen N. Rao2019-07-03 19:03:56 +0200
committerMichael Ellerman2019-07-04 14:23:10 +0200
commit1c85a2a1945cbafcd2e7cebc6e23d0e206aeda3d (patch)
tree04faeb3cd69166fa684f2b9dbee9ff2f07f0afa9 /arch/powerpc/include
parentpowerpc/pseries: Do not save the previous DTL mask value (diff)
downloadkernel-qcow2-linux-1c85a2a1945cbafcd2e7cebc6e23d0e206aeda3d.tar.gz
kernel-qcow2-linux-1c85a2a1945cbafcd2e7cebc6e23d0e206aeda3d.tar.xz
kernel-qcow2-linux-1c85a2a1945cbafcd2e7cebc6e23d0e206aeda3d.zip
powerpc/pseries: Factor out DTL buffer allocation and registration routines
Introduce new helpers for DTL buffer allocation and registration and have the existing code use those. Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> [mpe: Don't split error messages across lines, for grepability] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/lppaca.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/lppaca.h b/arch/powerpc/include/asm/lppaca.h
index 2c7e31187726..a8ac2b8988d4 100644
--- a/arch/powerpc/include/asm/lppaca.h
+++ b/arch/powerpc/include/asm/lppaca.h
@@ -175,6 +175,9 @@ extern struct kmem_cache *dtl_cache;
*/
extern void (*dtl_consumer)(struct dtl_entry *entry, u64 index);
+extern void register_dtl_buffer(int cpu);
+extern void alloc_dtl_buffers(void);
+
#endif /* CONFIG_PPC_BOOK3S */
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_LPPACA_H */