File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -856,7 +856,7 @@ int acpi_unmap_cpu(int cpu)
856
856
set_apicid_to_node (per_cpu (x86_cpu_to_apicid , cpu ), NUMA_NO_NODE );
857
857
#endif
858
858
859
- per_cpu (x86_cpu_to_apicid , cpu ) = -1 ;
859
+ per_cpu (x86_cpu_to_apicid , cpu ) = BAD_APICID ;
860
860
set_cpu_present (cpu , false);
861
861
num_processors -- ;
862
862
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ unsigned int num_processors;
72
72
unsigned disabled_cpus ;
73
73
74
74
/* Processor that is doing the boot up */
75
- unsigned int boot_cpu_physical_apicid __ro_after_init = -1U ;
75
+ unsigned int boot_cpu_physical_apicid __ro_after_init = BAD_APICID ;
76
76
EXPORT_SYMBOL_GPL (boot_cpu_physical_apicid );
77
77
78
78
u8 boot_cpu_apic_version __ro_after_init ;
@@ -2318,9 +2318,7 @@ static int nr_logical_cpuids = 1;
2318
2318
/*
2319
2319
* Used to store mapping between logical CPU IDs and APIC IDs.
2320
2320
*/
2321
- int cpuid_to_apicid [] = {
2322
- [0 ... NR_CPUS - 1 ] = -1 ,
2323
- };
2321
+ int cpuid_to_apicid [] = { [0 ... NR_CPUS - 1 ] = BAD_APICID , };
2324
2322
2325
2323
bool arch_match_cpu_phys_id (int cpu , u64 phys_id )
2326
2324
{
You can’t perform that action at this time.
0 commit comments