aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-01-24 14:01:32 -0500
committerTejun Heo <tj@kernel.org>2013-01-24 14:01:32 -0500
commite2905b29122173b72b612c962b138e3fa07476b8 (patch)
tree66d7a8545f1fda113962c4a817673ff5b453c336 /kernel
parent84b233adcca3cacd5cfa8013a5feda7a3db4a9af (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.c4
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
451static int worker_thread(void *__worker); 451static int worker_thread(void *__worker);
452static unsigned int work_cpu(struct work_struct *work);
452 453
453static int worker_pool_pri(struct worker_pool *pool) 454static 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 */
3422unsigned int work_cpu(struct work_struct *work) 3423static 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}
3428EXPORT_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