diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-12 11:29:59 -0700 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 11:29:59 -0700 |
commit | d84ff0512f1bfc0d8c864efadb4523fce68919cc (patch) | |
tree | b91fe48e9bd59e0709b00869cd200c79f882afff /kernel/workqueue_internal.h | |
parent | 493a1724fef9a3e931d9199f1a19e358e526a6e7 (diff) | |
download | linux-d84ff0512f1bfc0d8c864efadb4523fce68919cc.tar.gz linux-d84ff0512f1bfc0d8c864efadb4523fce68919cc.tar.bz2 linux-d84ff0512f1bfc0d8c864efadb4523fce68919cc.zip |
workqueue: consistently use int for @cpu variables
Workqueue is mixing unsigned int and int for @cpu variables. There's
no point in using unsigned int for cpus - many of cpu related APIs
take int anyway. Consistently use int for @cpu variables so that we
can use negative values to mark special ones.
This patch doesn't introduce any visible behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Diffstat (limited to 'kernel/workqueue_internal.h')
-rw-r--r-- | kernel/workqueue_internal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/workqueue_internal.h b/kernel/workqueue_internal.h index f9c887731e2b..f116f071d919 100644 --- a/kernel/workqueue_internal.h +++ b/kernel/workqueue_internal.h @@ -59,8 +59,7 @@ static inline struct worker *current_wq_worker(void) * Scheduler hooks for concurrency managed workqueue. Only to be used from * sched.c and workqueue.c. */ -void wq_worker_waking_up(struct task_struct *task, unsigned int cpu); -struct task_struct *wq_worker_sleeping(struct task_struct *task, - unsigned int cpu); +void wq_worker_waking_up(struct task_struct *task, int cpu); +struct task_struct *wq_worker_sleeping(struct task_struct *task, int cpu); #endif /* _KERNEL_WORKQUEUE_INTERNAL_H */ |