diff options
author | Tejun Heo <tj@kernel.org> | 2013-01-24 14:01:32 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-24 14:01:32 -0500 |
commit | e2905b29122173b72b612c962b138e3fa07476b8 (patch) | |
tree | 66d7a8545f1fda113962c4a817673ff5b453c336 /kernel | |
parent | 84b233adcca3cacd5cfa8013a5feda7a3db4a9af (diff) |
workqueue: unexport work_cpu()
This function no longer has any external users. Unexport it. It will
be removed later on.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/workqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 2ffa240052fa..fe0745f54fcd 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -449,6 +449,7 @@ static atomic_t unbound_pool_nr_running[NR_WORKER_POOLS] = { | |||
449 | }; | 449 | }; |
450 | 450 | ||
451 | static int worker_thread(void *__worker); | 451 | static int worker_thread(void *__worker); |
452 | static unsigned int work_cpu(struct work_struct *work); | ||
452 | 453 | ||
453 | static int worker_pool_pri(struct worker_pool *pool) | 454 | static int worker_pool_pri(struct worker_pool *pool) |
454 | { | 455 | { |
@@ -3419,13 +3420,12 @@ EXPORT_SYMBOL_GPL(workqueue_congested); | |||
3419 | * RETURNS: | 3420 | * RETURNS: |
3420 | * CPU number if @work was ever queued. WORK_CPU_NONE otherwise. | 3421 | * CPU number if @work was ever queued. WORK_CPU_NONE otherwise. |
3421 | */ | 3422 | */ |
3422 | unsigned int work_cpu(struct work_struct *work) | 3423 | static unsigned int work_cpu(struct work_struct *work) |
3423 | { | 3424 | { |
3424 | struct global_cwq *gcwq = get_work_gcwq(work); | 3425 | struct global_cwq *gcwq = get_work_gcwq(work); |
3425 | 3426 | ||
3426 | return gcwq ? gcwq->cpu : WORK_CPU_NONE; | 3427 | return gcwq ? gcwq->cpu : WORK_CPU_NONE; |
3427 | } | 3428 | } |
3428 | EXPORT_SYMBOL_GPL(work_cpu); | ||
3429 | 3429 | ||
3430 | /** | 3430 | /** |
3431 | * work_busy - test whether a work is currently pending or running | 3431 | * work_busy - test whether a work is currently pending or running |