mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 10:34:24 +08:00
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>
This commit is contained in:
parent
31ddd871fc
commit
daaae6b010
@ -430,8 +430,4 @@ extern bool freeze_workqueues_busy(void);
|
|||||||
extern void thaw_workqueues(void);
|
extern void thaw_workqueues(void);
|
||||||
#endif /* CONFIG_FREEZER */
|
#endif /* CONFIG_FREEZER */
|
||||||
|
|
||||||
#ifdef CONFIG_LOCKDEP
|
|
||||||
int in_workqueue_context(struct workqueue_struct *wq);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -310,21 +310,6 @@ static inline int __next_wq_cpu(int cpu, const struct cpumask *mask,
|
|||||||
(cpu) < WORK_CPU_NONE; \
|
(cpu) < WORK_CPU_NONE; \
|
||||||
(cpu) = __next_wq_cpu((cpu), cpu_possible_mask, (wq)))
|
(cpu) = __next_wq_cpu((cpu), cpu_possible_mask, (wq)))
|
||||||
|
|
||||||
#ifdef CONFIG_LOCKDEP
|
|
||||||
/**
|
|
||||||
* in_workqueue_context() - in context of specified workqueue?
|
|
||||||
* @wq: the workqueue of interest
|
|
||||||
*
|
|
||||||
* Checks lockdep state to see if the current task is executing from
|
|
||||||
* within a workqueue item. This function exists only if lockdep is
|
|
||||||
* enabled.
|
|
||||||
*/
|
|
||||||
int in_workqueue_context(struct workqueue_struct *wq)
|
|
||||||
{
|
|
||||||
return lock_is_held(&wq->lockdep_map);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_OBJECTS_WORK
|
#ifdef CONFIG_DEBUG_OBJECTS_WORK
|
||||||
|
|
||||||
static struct debug_obj_descr work_debug_descr;
|
static struct debug_obj_descr work_debug_descr;
|
||||||
|
Loading…
Reference in New Issue
Block a user