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

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