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