Michal Suchanek ce8b78
From 5dd6cdca8b67cf4e976fc0d9437045388c04811c Mon Sep 17 00:00:00 2001
Michal Suchanek ce8b78
From: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek ce8b78
Date: Thu, 27 May 2021 15:36:33 +0200
Michal Suchanek ce8b78
Subject: [PATCH] kABI: powerpc/64: add back start_tb and accum_tb to
Michal Suchanek ce8b78
 thread_struct
Michal Suchanek ce8b78
Michal Suchanek ce8b78
Also rename the members to make sure no users remain.
Michal Suchanek ce8b78
Michal Suchanek ce8b78
References: bsc#1186487 ltc#177613
Michal Suchanek ce8b78
Patch-mainline: never, kABI
Michal Suchanek ce8b78
Michal Suchanek ce8b78
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Michal Suchanek ce8b78
---
Michal Suchanek ce8b78
 arch/powerpc/include/asm/processor.h | 8 ++++++++
Michal Suchanek ce8b78
 1 file changed, 8 insertions(+)
Michal Suchanek ce8b78
Michal Suchanek ce8b78
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
Michal Suchanek ce8b78
index 8c082cb7d9fc..18ef6b44b91f 100644
Michal Suchanek ce8b78
--- a/arch/powerpc/include/asm/processor.h
Michal Suchanek ce8b78
+++ b/arch/powerpc/include/asm/processor.h
Michal Suchanek ce8b78
@@ -264,6 +264,14 @@ struct thread_struct {
Michal Suchanek ce8b78
 	struct thread_fp_state	*fp_save_area;
Michal Suchanek ce8b78
 	int		fpexc_mode;	/* floating-point exception mode */
Michal Suchanek ce8b78
 	unsigned int	align_ctl;	/* alignment handling control */
Michal Suchanek ce8b78
+#ifdef CONFIG_PPC64
Michal Suchanek ce8b78
+#ifdef __GENKSYMS__
Michal Suchanek ce8b78
+	unsigned long	start_tb;	/* Start purr when proc switched in */
Michal Suchanek ce8b78
+	unsigned long	accum_tb;	/* Total accumulated purr for process */
Michal Suchanek ce8b78
+#else
Michal Suchanek ce8b78
+	unsigned long	__unused_padding[2];
Michal Suchanek ce8b78
+#endif
Michal Suchanek ce8b78
+#endif
Michal Suchanek ce8b78
 #ifdef CONFIG_HAVE_HW_BREAKPOINT
Michal Suchanek ce8b78
 	struct perf_event *ptrace_bps[HBP_NUM];
Michal Suchanek ce8b78
 	/*
Michal Suchanek ce8b78
-- 
Michal Suchanek ce8b78
2.26.2
Michal Suchanek ce8b78