]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
Arm: rename smp_clear_cpu_maps()
authorJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2025 09:23:41 +0000 (11:23 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2025 09:23:41 +0000 (11:23 +0200)
The function has lost all clearing operations. Use the commonly
available name (declared in xen/smp.h), that x86 also uses. This then
also addresses a Misra C:2012 rule 8.6 violation (not really covered
by the deviation we have).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
xen/arch/arm/include/asm/smp.h
xen/arch/arm/setup.c
xen/arch/arm/smpboot.c

index 8f765ed12ab25125a4bd2f07b2687d22472b53cc..f5c829e2296eca5609e7d005fdef34e75d543876 100644 (file)
@@ -29,7 +29,6 @@ int cpu_up_send_sgi(int cpu);
 extern void init_secondary(void);
 
 extern void smp_init_cpus(void);
-extern void smp_clear_cpu_maps (void);
 extern unsigned int smp_get_max_cpus(void);
 
 #define cpu_physical_id(cpu) cpu_logical_map(cpu)
index 07703a15e1608ab6f220a9eafce8cd8bb4bcf8c0..10b46d068405f23d285419238cdeb7d7d1555704 100644 (file)
@@ -317,7 +317,7 @@ void asmlinkage __init start_xen(unsigned long fdt_paddr)
     /* Initialize traps early allow us to get backtrace when an error occurred */
     init_traps();
 
-    smp_clear_cpu_maps();
+    smp_prepare_boot_cpu();
 
     device_tree_flattened = early_fdt_map(fdt_paddr);
     if ( !device_tree_flattened )
index cbde4ae351ebe5cfafd5780675ea10ac591c7809..73de7503e9ee99c487fbb0b5d454ab938710b300 100644 (file)
@@ -107,8 +107,7 @@ static void remove_cpu_sibling_map(int cpu)
     free_cpumask_var(per_cpu(cpu_core_mask, cpu));
 }
 
-void __init
-smp_clear_cpu_maps (void)
+void __init smp_prepare_boot_cpu(void)
 {
     cpumask_set_cpu(0, &cpu_online_map);
     cpumask_set_cpu(0, &cpu_possible_map);