summaryrefslogtreecommitdiff
path: root/arch/powerpc/sysdev/xive/xive-internal.h
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2021-12-01 17:54:18 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2021-12-02 10:40:38 +1100
commit2a2ac8a7018b953cd23d770ebd28f8e1ea365df4 (patch)
tree00ebb55bd093c5a4f247d74bfa16dbd4ab1ea192 /arch/powerpc/sysdev/xive/xive-internal.h
parent62ea67e31981bca95ec16c37e2a1fba68f3dd8c5 (diff)
powerpc/xive: Fix compile when !CONFIG_PPC_POWERNV.
The automatic "save & restore" of interrupt context is a POWER10/XIVE2 feature exploited by KVM under the PowerNV platform. It is not available under pSeries and the associated toggle should not be exposed under the XIVE debugfs directory. Introduce a platform handler for debugfs initialization and move the 'save-restore' entry under the native (PowerNV) backend to fix compile when !CONFIG_PPC_POWERNV. Fixes: 1e7684dc4fc7 ("powerpc/xive: Add a debugfs toggle for save-restore") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20211201165418.1041842-1-clg@kaod.org
Diffstat (limited to 'arch/powerpc/sysdev/xive/xive-internal.h')
-rw-r--r--arch/powerpc/sysdev/xive/xive-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/xive/xive-internal.h b/arch/powerpc/sysdev/xive/xive-internal.h
index e0941bc64430..fe6d95d54af9 100644
--- a/arch/powerpc/sysdev/xive/xive-internal.h
+++ b/arch/powerpc/sysdev/xive/xive-internal.h
@@ -58,6 +58,7 @@ struct xive_ops {
void (*put_ipi)(unsigned int cpu, struct xive_cpu *xc);
#endif
int (*debug_show)(struct seq_file *m, void *private);
+ int (*debug_create)(struct dentry *xive_dir);
const char *name;
};