Skip to content

Commit e53607e

Browse files
Leo Yu-Chi LiangMina-Chou
authored andcommitted
smu: andes: kernel/workqueue: Fix delay wakeup by setting default workqueue scope affinity to NUMA (torvalds#164)
We git bisected and found that the commit 63c5484 ("workqueue: Add multiple affinity scopes and interface to select them") would cause the system to wakeup after, but not as soon as, wakeup event is triggered. Instead of reverting the commit, changing the default workqueue attribute alone to NUMA like before could solve this issue. Fixes: 63c5484 ("workqueue: Add multiple affinity scopes and interface to select them") Signed-off-by: Leo Yu-Chi Liang <[email protected]>
1 parent cf7beaf commit e53607e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/workqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static bool wq_topo_initialized __read_mostly = false;
432432
static struct kmem_cache *pwq_cache;
433433

434434
static struct wq_pod_type wq_pod_types[WQ_AFFN_NR_TYPES];
435-
static enum wq_affn_scope wq_affn_dfl = WQ_AFFN_CACHE;
435+
static enum wq_affn_scope wq_affn_dfl = WQ_AFFN_NUMA;
436436

437437
/* buf for wq_update_unbound_pod_attrs(), protected by CPU hotplug exclusion */
438438
static struct workqueue_attrs *unbound_wq_update_pwq_attrs_buf;

0 commit comments

Comments
 (0)