Arm: rename smp_clear_cpu_maps()

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>
This commit is contained in:
Jan Beulich committed 2025-04-22 11:23:41 +02:00
1 parent d98df4c531
commit 8d31a735bc
3 files changed
+2 -4

No files matched your search

-1
View 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)
+1 -1
View 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 )
+1 -2
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.