diff options
| author | Tejun Heo <tj@kernel.org> | 2010-10-19 05:28:15 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2010-10-19 05:28:15 -0400 |
| commit | daaae6b010ac0f60c9c35e481589966f9f1fcc22 (patch) | |
| tree | 94f4f463d898af0ad1926b8d21c15db94a0a411a /kernel/workqueue.c | |
| parent | 31ddd871fc3db73e2024cb3eb3ee5051edf5a80f (diff) | |
workqueue: remove in_workqueue_context()
Commit a25909a4 (lockdep: Add an in_workqueue_context() lockdep-based
test function) added in_workqueue_context() but there hasn't been any
in-kernel user and the lockdep annotation in workqueue is scheduled to
change. Remove the unused function.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index eb5c1972443a..30acdb74cc23 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -310,21 +310,6 @@ static inline int __next_wq_cpu(int cpu, const struct cpumask *mask, | |||
| 310 | (cpu) < WORK_CPU_NONE; \ | 310 | (cpu) < WORK_CPU_NONE; \ |
| 311 | (cpu) = __next_wq_cpu((cpu), cpu_possible_mask, (wq))) | 311 | (cpu) = __next_wq_cpu((cpu), cpu_possible_mask, (wq))) |
| 312 | 312 | ||
| 313 | #ifdef CONFIG_LOCKDEP | ||
| 314 | /** | ||
| 315 | * in_workqueue_context() - in context of specified workqueue? | ||
| 316 | * @wq: the workqueue of interest | ||
| 317 | * | ||
| 318 | * Checks lockdep state to see if the current task is executing from | ||
| 319 | * within a workqueue item. This function exists only if lockdep is | ||
| 320 | * enabled. | ||
| 321 | */ | ||
| 322 | int in_workqueue_context(struct workqueue_struct *wq) | ||
| 323 | { | ||
| 324 | return lock_is_held(&wq->lockdep_map); | ||
| 325 | } | ||
| 326 | #endif | ||
| 327 | |||
| 328 | #ifdef CONFIG_DEBUG_OBJECTS_WORK | 313 | #ifdef CONFIG_DEBUG_OBJECTS_WORK |
| 329 | 314 | ||
| 330 | static struct debug_obj_descr work_debug_descr; | 315 | static struct debug_obj_descr work_debug_descr; |
