diff options
author | Tejun Heo <tj@kernel.org> | 2013-03-13 22:47:40 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-03-13 22:47:40 -0400 |
commit | 7d19c5ce6682fd0390049b5340d4b6bb6065d677 (patch) | |
tree | da5a04e853d217510d044da83891c09a3f3385da /kernel/workqueue.c | |
parent | cd549687a7ee5e619a26f55af4059c4ae585811c (diff) |
workqueue: relocate global variable defs and function decls in workqueue.c
They're split across debugobj code for some reason. Collect them.
This patch is pure relocation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index ce1ab069c5fe..9a0cbb2fdd64 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -248,6 +248,21 @@ struct workqueue_struct { | |||
248 | 248 | ||
249 | static struct kmem_cache *pwq_cache; | 249 | static struct kmem_cache *pwq_cache; |
250 | 250 | ||
251 | /* Serializes the accesses to the list of workqueues. */ | ||
252 | static DEFINE_SPINLOCK(workqueue_lock); | ||
253 | static LIST_HEAD(workqueues); | ||
254 | static bool workqueue_freezing; /* W: have wqs started freezing? */ | ||
255 | |||
256 | /* the per-cpu worker pools */ | ||
257 | static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], | ||
258 | cpu_worker_pools); | ||
259 | |||
260 | /* | ||
261 | * R: idr of all pools. Modifications are protected by workqueue_lock. | ||
262 | * Read accesses are protected by sched-RCU protected. | ||
263 | */ | ||
264 | static DEFINE_IDR(worker_pool_idr); | ||
265 | |||
251 | /* W: hash of all unbound pools keyed by pool->attrs */ | 266 | /* W: hash of all unbound pools keyed by pool->attrs */ |
252 | static DEFINE_HASHTABLE(unbound_pool_hash, UNBOUND_POOL_HASH_ORDER); | 267 | static DEFINE_HASHTABLE(unbound_pool_hash, UNBOUND_POOL_HASH_ORDER); |
253 | 268 | ||
@@ -265,6 +280,10 @@ EXPORT_SYMBOL_GPL(system_unbound_wq); | |||
265 | struct workqueue_struct *system_freezable_wq __read_mostly; | 280 | struct workqueue_struct *system_freezable_wq __read_mostly; |
266 | EXPORT_SYMBOL_GPL(system_freezable_wq); | 281 | EXPORT_SYMBOL_GPL(system_freezable_wq); |
267 | 282 | ||
283 | static int worker_thread(void *__worker); | ||
284 | static void copy_workqueue_attrs(struct workqueue_attrs *to, | ||
285 | const struct workqueue_attrs *from); | ||
286 | |||
268 | #define CREATE_TRACE_POINTS | 287 | #define CREATE_TRACE_POINTS |
269 | #include <trace/events/workqueue.h> | 288 | #include <trace/events/workqueue.h> |
270 | 289 | ||
@@ -431,25 +450,6 @@ static inline void debug_work_activate(struct work_struct *work) { } | |||
431 | static inline void debug_work_deactivate(struct work_struct *work) { } | 450 | static inline void debug_work_deactivate(struct work_struct *work) { } |
432 | #endif | 451 | #endif |
433 | 452 | ||
434 | /* Serializes the accesses to the list of workqueues. */ | ||
435 | static DEFINE_SPINLOCK(workqueue_lock); | ||
436 | static LIST_HEAD(workqueues); | ||
437 | static bool workqueue_freezing; /* W: have wqs started freezing? */ | ||
438 | |||
439 | /* the per-cpu worker pools */ | ||
440 | static DEFINE_PER_CPU_SHARED_ALIGNED(struct worker_pool [NR_STD_WORKER_POOLS], | ||
441 | cpu_worker_pools); | ||
442 | |||
443 | /* | ||
444 | * R: idr of all pools. Modifications are protected by workqueue_lock. | ||
445 | * Read accesses are protected by sched-RCU protected. | ||
446 | */ | ||
447 | static DEFINE_IDR(worker_pool_idr); | ||
448 | |||
449 | static int worker_thread(void *__worker); | ||
450 | static void copy_workqueue_attrs(struct workqueue_attrs *to, | ||
451 | const struct workqueue_attrs *from); | ||
452 | |||
453 | /* allocate ID and assign it to @pool */ | 453 | /* allocate ID and assign it to @pool */ |
454 | static int worker_pool_assign_id(struct worker_pool *pool) | 454 | static int worker_pool_assign_id(struct worker_pool *pool) |
455 | { | 455 | { |