We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7253046 commit 6055f6cCopy full SHA for 6055f6c
arch/x86/kernel/smpboot.c
@@ -1072,9 +1072,13 @@ int native_kick_ap(unsigned int cpu, struct task_struct *tidle)
1072
1073
pr_debug("++++++++++++++++++++=_---CPU UP %u\n", cpu);
1074
1075
- if (apicid == BAD_APICID || !test_bit(apicid, phys_cpu_present_map) ||
1076
- !apic_id_valid(apicid)) {
1077
- pr_err("%s: bad cpu %d\n", __func__, cpu);
+ if (apicid == BAD_APICID || !apic_id_valid(apicid)) {
+ pr_err("CPU %u has invalid APIC ID %x. Aborting bringup\n", cpu, apicid);
+ return -EINVAL;
1078
+ }
1079
+
1080
+ if (!test_bit(apicid, phys_cpu_present_map)) {
1081
+ pr_err("CPU %u APIC ID %x is not present. Aborting bringup\n", cpu, apicid);
1082
return -EINVAL;
1083
}
1084
0 commit comments