Parcourir la source

debugobj, workqueue: remove keventd_up() usage

Now that workqueue can handle work item queueing from very early
during boot, there is no need to gate schedule_work() while
!keventd_up().  Remove it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Tejun Heo il y a 9 ans
Parent
commit
7092dff2af
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/debugobjects.c

+ 1 - 1
lib/debugobjects.c

@@ -199,7 +199,7 @@ static void free_object(struct debug_obj *obj)
 	 * initialized:
 	 * initialized:
 	 */
 	 */
 	if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache)
 	if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache)
-		sched = keventd_up();
+		sched = 1;
 	hlist_add_head(&obj->node, &obj_pool);
 	hlist_add_head(&obj->node, &obj_pool);
 	obj_pool_free++;
 	obj_pool_free++;
 	obj_pool_used--;
 	obj_pool_used--;