diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-12 14:29:59 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-12 14:29:59 -0400 |
commit | d84ff0512f1bfc0d8c864efadb4523fce68919cc (patch) | |
tree | b91fe48e9bd59e0709b00869cd200c79f882afff /include/linux | |
parent | 493a1724fef9a3e931d9199f1a19e358e526a6e7 (diff) |
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 'include/linux')
-rw-r--r-- | include/linux/workqueue.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index 5bd030f630a9..899be6636d20 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -435,7 +435,7 @@ extern bool cancel_delayed_work_sync(struct delayed_work *dwork); | |||
435 | 435 | ||
436 | extern void workqueue_set_max_active(struct workqueue_struct *wq, | 436 | extern void workqueue_set_max_active(struct workqueue_struct *wq, |
437 | int max_active); | 437 | int max_active); |
438 | extern bool workqueue_congested(unsigned int cpu, struct workqueue_struct *wq); | 438 | extern bool workqueue_congested(int cpu, struct workqueue_struct *wq); |
439 | extern unsigned int work_busy(struct work_struct *work); | 439 | extern unsigned int work_busy(struct work_struct *work); |
440 | 440 | ||
441 | /* | 441 | /* |
@@ -466,12 +466,12 @@ static inline bool __deprecated flush_delayed_work_sync(struct delayed_work *dwo | |||
466 | } | 466 | } |
467 | 467 | ||
468 | #ifndef CONFIG_SMP | 468 | #ifndef CONFIG_SMP |
469 | static inline long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg) | 469 | static inline long work_on_cpu(int cpu, long (*fn)(void *), void *arg) |
470 | { | 470 | { |
471 | return fn(arg); | 471 | return fn(arg); |
472 | } | 472 | } |
473 | #else | 473 | #else |
474 | long work_on_cpu(unsigned int cpu, long (*fn)(void *), void *arg); | 474 | long work_on_cpu(int cpu, long (*fn)(void *), void *arg); |
475 | #endif /* CONFIG_SMP */ | 475 | #endif /* CONFIG_SMP */ |
476 | 476 | ||
477 | #ifdef CONFIG_FREEZER | 477 | #ifdef CONFIG_FREEZER |