Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63656
b: refs/heads/master
c: 17aa3a8
h: refs/heads/master
v: v3
  • Loading branch information
Kevin Corry authored and Paul Mackerras committed Aug 3, 2007
1 parent 750c749 commit be3780d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cba684f56d7e8b82b08d4372375a42d6ebeab47d
refs/heads/master: 17aa3a82aa2173a22405f862c4444656f0494a3f
9 changes: 3 additions & 6 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,16 @@ int smp_call_function_map(void (*func) (void *info), void *info, int nonatomic,
atomic_set(&data.finished, 0);

spin_lock(&call_lock);
/* Must grab online cpu count with preempt disabled, otherwise
* it can change. */
num_cpus = num_online_cpus() - 1;
if (!num_cpus)
goto done;

/* remove 'self' from the map */
if (cpu_isset(smp_processor_id(), map))
cpu_clear(smp_processor_id(), map);

/* sanity check the map, remove any non-online processors. */
cpus_and(map, map, cpu_online_map);
if (cpus_empty(map))

num_cpus = cpus_weight(map);
if (!num_cpus)
goto done;

call_data = &data;
Expand Down

0 comments on commit be3780d

Please sign in to comment.