Commit e2905b29 authored by Tejun Heo's avatar Tejun Heo

workqueue: unexport work_cpu()

This function no longer has any external users.  Unexport it.  It will
be removed later on.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reviewed-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
parent 84b233ad
...@@ -426,7 +426,6 @@ extern bool cancel_delayed_work_sync(struct delayed_work *dwork); ...@@ -426,7 +426,6 @@ extern bool cancel_delayed_work_sync(struct delayed_work *dwork);
extern void workqueue_set_max_active(struct workqueue_struct *wq, extern void workqueue_set_max_active(struct workqueue_struct *wq,
int max_active); int max_active);
extern bool workqueue_congested(unsigned int cpu, struct workqueue_struct *wq); 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); extern unsigned int work_busy(struct work_struct *work);
/* /*
......
...@@ -449,6 +449,7 @@ static atomic_t unbound_pool_nr_running[NR_WORKER_POOLS] = { ...@@ -449,6 +449,7 @@ static atomic_t unbound_pool_nr_running[NR_WORKER_POOLS] = {
}; };
static int worker_thread(void *__worker); static int worker_thread(void *__worker);
static unsigned int work_cpu(struct work_struct *work);
static int worker_pool_pri(struct worker_pool *pool) static int worker_pool_pri(struct worker_pool *pool)
{ {
...@@ -3419,13 +3420,12 @@ EXPORT_SYMBOL_GPL(workqueue_congested); ...@@ -3419,13 +3420,12 @@ EXPORT_SYMBOL_GPL(workqueue_congested);
* RETURNS: * RETURNS:
* CPU number if @work was ever queued. WORK_CPU_NONE otherwise. * 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); struct global_cwq *gcwq = get_work_gcwq(work);
return gcwq ? gcwq->cpu : WORK_CPU_NONE; return gcwq ? gcwq->cpu : WORK_CPU_NONE;
} }
EXPORT_SYMBOL_GPL(work_cpu);
/** /**
* work_busy - test whether a work is currently pending or running * work_busy - test whether a work is currently pending or running
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment