Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327166
b: refs/heads/master
c: b75cac9
h: refs/heads/master
v: v3
  • Loading branch information
Joonsoo Kim authored and Tejun Heo committed Aug 16, 2012
1 parent 817222a commit 79bbf23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 330dad5b9c9555632578c00e94e85c122561c5c7
refs/heads/master: b75cac9368fa91636e17d0f7950b35d837154e14
3 changes: 2 additions & 1 deletion trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,7 @@ static void __queue_work(unsigned int cpu, struct workqueue_struct *wq,
struct cpu_workqueue_struct *cwq;
struct list_head *worklist;
unsigned int work_flags;
unsigned int req_cpu = cpu;

/*
* While a work item is PENDING && off queue, a task trying to
Expand Down Expand Up @@ -1253,7 +1254,7 @@ static void __queue_work(unsigned int cpu, struct workqueue_struct *wq,

/* gcwq determined, get cwq and queue */
cwq = get_cwq(gcwq->cpu, wq);
trace_workqueue_queue_work(cpu, cwq, work);
trace_workqueue_queue_work(req_cpu, cwq, work);

if (WARN_ON(!list_empty(&work->entry))) {
spin_unlock(&gcwq->lock);
Expand Down

0 comments on commit 79bbf23

Please sign in to comment.