summaryrefslogtreecommitdiffstats
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2023-08-07 15:57:25 -1000
committerTejun Heo <tj@kernel.org>2023-08-07 15:57:25 -1000
commit523a301e66afd1ea9856660bcf3cee3a7c84c6dd (patch)
tree56cfc70a2006d4441b420b0fa539a40694ff0c86 /include/linux/workqueue.h
parent7dbf15c5c05e835d488e0fee49a35b0f23452e45 (diff)
downloadlinux-523a301e66afd1ea9856660bcf3cee3a7c84c6dd.tar.gz
linux-523a301e66afd1ea9856660bcf3cee3a7c84c6dd.tar.bz2
linux-523a301e66afd1ea9856660bcf3cee3a7c84c6dd.zip
workqueue: Make default affinity_scope dynamically updatable
While workqueue.default_affinity_scope is writable, it only affects workqueues which are created afterwards and isn't very useful. Instead, let's introduce explicit "default" scope and update the effective scope dynamically when workqueue.default_affinity_scope is changed. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/workqueue.h')
-rw-r--r--include/linux/workqueue.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h
index 0c1cad38f9db..1c1d06804d45 100644
--- a/include/linux/workqueue.h
+++ b/include/linux/workqueue.h
@@ -126,6 +126,7 @@ struct rcu_work {
};
enum wq_affn_scope {
+ WQ_AFFN_DFL, /* use system default */
WQ_AFFN_CPU, /* one pod per CPU */
WQ_AFFN_SMT, /* one pod poer SMT */
WQ_AFFN_CACHE, /* one pod per LLC */
@@ -133,8 +134,6 @@ enum wq_affn_scope {
WQ_AFFN_SYSTEM, /* one pod across the whole system */
WQ_AFFN_NR_TYPES,
-
- WQ_AFFN_DFL = WQ_AFFN_CACHE,
};
/**