Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21083
b: refs/heads/master
c: 82c3c03
h: refs/heads/master
i:
  21081: 1f33e5e
  21079: 995b3fb
v: v3
  • Loading branch information
Srivatsa Vaddagiri authored and Linus Torvalds committed Mar 17, 2006
1 parent 2112485 commit b3445a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8532159f5521ba24e697f0d25970ae89ff62a1f2
refs/heads/master: 82c3c03a4096badd026c6e337f3c5dde020e9ec6
10 changes: 10 additions & 0 deletions trunk/arch/i386/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,16 @@ int __devinit smp_prepare_cpu(int cpu)
int apicid, ret;

lock_cpu_hotplug();

/*
* On x86, CPU0 is never offlined. Trying to bring up an
* already-booted CPU will hang. So check for that case.
*/
if (cpu_online(cpu)) {
ret = -EINVAL;
goto exit;
}

apicid = x86_cpu_to_apicid[cpu];
if (apicid == BAD_APICID) {
ret = -ENODEV;
Expand Down

0 comments on commit b3445a7

Please sign in to comment.