Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117086
b: refs/heads/master
c: 8163bca
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Rusty Russell committed Oct 21, 2008
1 parent dba487a commit e885480
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: c9583e55fa2b08a230c549bd1e3c0bde6c50d9cc
refs/heads/master: 8163bcac779f62c6bf847caed9bce905db0693fb
9 changes: 6 additions & 3 deletions trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static void stop_cpu(struct work_struct *unused)
enum stopmachine_state curstate = STOPMACHINE_NONE;
struct stop_machine_data *smdata = &idle;
int cpu = smp_processor_id();
int err;

if (!active_cpus) {
if (cpu == first_cpu(cpu_online_map))
Expand All @@ -86,9 +87,11 @@ static void stop_cpu(struct work_struct *unused)
hard_irq_disable();
break;
case STOPMACHINE_RUN:
/* |= allows error detection if functions on
* multiple CPUs. */
smdata->fnret |= smdata->fn(smdata->data);
/* On multiple CPUs only a single error code
* is needed to tell that something failed. */
err = smdata->fn(smdata->data);
if (err)
smdata->fnret = err;
break;
default:
break;
Expand Down

0 comments on commit e885480

Please sign in to comment.