Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292267
b: refs/heads/master
c: 3047817
h: refs/heads/master
i:
  292265: abfb5e6
  292263: 7f0ac33
v: v3
  • Loading branch information
Steffen Klassert authored and Herbert Xu committed Mar 14, 2012
1 parent 9ba65a9 commit 38a25e6
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0b95ec56ae19f61ca664e83766a2180057f0e351
refs/heads/master: 3047817b894ddae62be07787bc8735a616104398
6 changes: 4 additions & 2 deletions trunk/kernel/padata.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ static struct padata_priv *padata_get_next(struct parallel_data *pd)

static void padata_reorder(struct parallel_data *pd)
{
int cb_cpu;
struct padata_priv *padata;
struct padata_serial_queue *squeue;
struct padata_instance *pinst = pd->pinst;
Expand Down Expand Up @@ -270,13 +271,14 @@ static void padata_reorder(struct parallel_data *pd)
return;
}

squeue = per_cpu_ptr(pd->squeue, padata->cb_cpu);
cb_cpu = padata->cb_cpu;
squeue = per_cpu_ptr(pd->squeue, cb_cpu);

spin_lock(&squeue->serial.lock);
list_add_tail(&padata->list, &squeue->serial.list);
spin_unlock(&squeue->serial.lock);

queue_work_on(padata->cb_cpu, pinst->wq, &squeue->work);
queue_work_on(cb_cpu, pinst->wq, &squeue->work);
}

spin_unlock_bh(&pd->lock);
Expand Down

0 comments on commit 38a25e6

Please sign in to comment.