Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350275
b: refs/heads/master
c: e2905b2
h: refs/heads/master
i:
  350273: f6470ab
  350271: 9a90fc1
v: v3
  • Loading branch information
Tejun Heo committed Jan 24, 2013
1 parent 9ec5a53 commit a7c5226
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 84b233adcca3cacd5cfa8013a5feda7a3db4a9af
refs/heads/master: e2905b29122173b72b612c962b138e3fa07476b8
1 change: 0 additions & 1 deletion trunk/include/linux/workqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ extern bool cancel_delayed_work_sync(struct delayed_work *dwork);
extern void workqueue_set_max_active(struct workqueue_struct *wq,
int max_active);
extern bool workqueue_congested(unsigned int cpu, struct workqueue_struct *wq);
extern unsigned int work_cpu(struct work_struct *work);
extern unsigned int work_busy(struct work_struct *work);

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ static atomic_t unbound_pool_nr_running[NR_WORKER_POOLS] = {
};

static int worker_thread(void *__worker);
static unsigned int work_cpu(struct work_struct *work);

static int worker_pool_pri(struct worker_pool *pool)
{
Expand Down Expand Up @@ -3419,13 +3420,12 @@ EXPORT_SYMBOL_GPL(workqueue_congested);
* RETURNS:
* CPU number if @work was ever queued. WORK_CPU_NONE otherwise.
*/
unsigned int work_cpu(struct work_struct *work)
static unsigned int work_cpu(struct work_struct *work)
{
struct global_cwq *gcwq = get_work_gcwq(work);

return gcwq ? gcwq->cpu : WORK_CPU_NONE;
}
EXPORT_SYMBOL_GPL(work_cpu);

/**
* work_busy - test whether a work is currently pending or running
Expand Down

0 comments on commit a7c5226

Please sign in to comment.