Blame SOURCES/0005-ppc64-rename-ppc64_paca_init-to-ppc64_paca_percpu_of.patch

56ae9b
From 4dbf7e296f6fde05894a55e23fbaf0d50e3b38b9 Mon Sep 17 00:00:00 2001
56ae9b
From: Hari Bathini <hbathini@linux.ibm.com>
56ae9b
Date: Mon, 4 Jul 2022 10:55:43 +0530
56ae9b
Subject: [PATCH 05/28] ppc64: rename ppc64_paca_init to
56ae9b
 ppc64_paca_percpu_offset_init
56ae9b
56ae9b
ppc64_paca_init() function is specifically used to initialize percpu
56ae9b
data_offset for kernels older than v2.6.36. So, the name is slightly
56ae9b
misleading. Rename it to ppc64_paca_percpu_offset_init to reflect its
56ae9b
purpose.
56ae9b
56ae9b
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
56ae9b
Signed-off-by: Lianbo Jiang <lijiang@redhat.com>
56ae9b
---
56ae9b
 ppc64.c | 9 +++++----
56ae9b
 1 file changed, 5 insertions(+), 4 deletions(-)
56ae9b
56ae9b
diff --git a/ppc64.c b/ppc64.c
56ae9b
index 272eb207074a..0a3aa5f7af91 100644
56ae9b
--- a/ppc64.c
56ae9b
+++ b/ppc64.c
56ae9b
@@ -52,7 +52,7 @@ static char * ppc64_check_eframe(struct ppc64_pt_regs *);
56ae9b
 static void ppc64_print_eframe(char *, struct ppc64_pt_regs *, 
56ae9b
 		struct bt_info *);
56ae9b
 static void parse_cmdline_args(void);
56ae9b
-static int ppc64_paca_init(int);
56ae9b
+static int ppc64_paca_percpu_offset_init(int);
56ae9b
 static void ppc64_init_cpu_info(void);
56ae9b
 static int ppc64_get_cpu_map(void);
56ae9b
 static void ppc64_clear_machdep_cache(void);
56ae9b
@@ -3285,7 +3285,7 @@ parse_cmdline_args(void)
56ae9b
  * Initialize the per cpu data_offset values from paca structure.
56ae9b
  */
56ae9b
 static int
56ae9b
-ppc64_paca_init(int map)
56ae9b
+ppc64_paca_percpu_offset_init(int map)
56ae9b
 {
56ae9b
 	int i, cpus, nr_paca;
56ae9b
 	char *cpu_paca_buf;
56ae9b
@@ -3387,10 +3387,11 @@ ppc64_init_cpu_info(void)
56ae9b
 	 * which was removed post v2.6.15 ppc64 and now we get the per cpu
56ae9b
 	 * data_offset from __per_cpu_offset symbol during kernel_init()
56ae9b
 	 * call. Hence for backward (pre-2.6.36) compatibility, call
56ae9b
-	 * ppc64_paca_init() only if symbol __per_cpu_offset does not exist.
56ae9b
+	 * ppc64_paca_percpu_offset_init() only if symbol __per_cpu_offset
56ae9b
+	 * does not exist.
56ae9b
 	 */
56ae9b
 	if (!symbol_exists("__per_cpu_offset"))
56ae9b
-		cpus = ppc64_paca_init(map);
56ae9b
+		cpus = ppc64_paca_percpu_offset_init(map);
56ae9b
 	else {
56ae9b
 		if (!(nr_cpus = get_array_length("__per_cpu_offset", NULL, 0)))
56ae9b
 			nr_cpus = (kt->kernel_NR_CPUS ? kt->kernel_NR_CPUS :
56ae9b
-- 
56ae9b
2.37.1
56ae9b