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

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