Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119070
b: refs/heads/master
c: e14c8bf
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Nov 16, 2008
1 parent 3e866e4 commit 1923673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 5c06fe772da43db63b053addcd2c267f76d0be91
refs/heads/master: e14c8bf86350f6c39186a139c5c584a6111b2f01
5 changes: 3 additions & 2 deletions trunk/kernel/stop_machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static int chill(void *unused)
int __stop_machine(int (*fn)(void *), void *data, const cpumask_t *cpus)
{
struct work_struct *sm_work;
int i;
int i, ret;

/* Set up initial state. */
mutex_lock(&lock);
Expand All @@ -137,8 +137,9 @@ int __stop_machine(int (*fn)(void *), void *data, const cpumask_t *cpus)
/* This will release the thread on our CPU. */
put_cpu();
flush_workqueue(stop_machine_wq);
ret = active.fnret;
mutex_unlock(&lock);
return active.fnret;
return ret;
}

int stop_machine(int (*fn)(void *), void *data, const cpumask_t *cpus)
Expand Down

0 comments on commit 1923673

Please sign in to comment.