Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11168
b: refs/heads/master
c: ae1b3d5
h: refs/heads/master
v: v3
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent ad309d2 commit 77f4789
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1d40cfcd3442a53e98468cdb3e6d4d9a568d76cf
refs/heads/master: ae1b3d51c89a96c641111e2c103557592577cf51
5 changes: 5 additions & 0 deletions trunk/arch/mips/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ int smp_call_function (void (*func) (void *info), void *info, int retry,
int i, cpus = num_online_cpus() - 1;
int cpu = smp_processor_id();

/*
* Can die spectacularly if this CPU isn't yet marked online
*/
BUG_ON(!cpu_online(cpu));

if (!cpus)
return 0;

Expand Down

0 comments on commit 77f4789

Please sign in to comment.