diff mbox series

[RFC,4/4] workqueue: use integer for cpu on queuing work

Message ID 20191211113351.24240-1-hdanton@sina.com (mailing list archive)
State New, archived
Headers show
Series workqueue: fix selecting cpu for queuing work and cleanup | expand

Commit Message

Hillf Danton Dec. 11, 2019, 11:33 a.m. UTC
It's a minor cleanup, see d84ff0512f1b ("workqueue: consistently use
int for @cpu variables") for reasons.

Signed-off-by: Hillf Danton <hdanton@sina.com>
---
diff mbox series

Patch

--- e/kernel/workqueue.c
+++ f/kernel/workqueue.c
@@ -1393,7 +1393,7 @@  static void __queue_work(int cpu, struct
 	struct worker_pool *last_pool;
 	struct list_head *worklist;
 	unsigned int work_flags;
-	unsigned int req_cpu = cpu;
+	int req_cpu = cpu;
 
 	/*
 	 * While a work item is PENDING && off queue, a task trying to