summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Martelli <matteo.martelli@codethink.co.uk>2026-02-23 16:05:31 +0300
committerJonathan Corbet <corbet@lwn.net>2026-03-03 20:59:08 +0300
commit2b8060418dffaa4fcd9173dd5830a763a4b32e99 (patch)
treeb2cb35f3fbd454fbe0764b8bc6b7526636d05e2d
parente0bb430d3edc0b63e1482c2b7d4bbd38854ff8a7 (diff)
downloadlinux-2b8060418dffaa4fcd9173dd5830a763a4b32e99.tar.xz
sched_deadline, docs: fix cpuset example for cgroupv2
Documenation/scheduler/sched-deadline.rst provides two examples for how to setup cgroup and cpuset for deadline tasks: one for cgroup v1 and one cgroup v2. The code block in the latter is not properly html rendered as the :: marker is missing. Add the :: marker before the code block for the cgroup v2 example to fix html rendering. Also make the example description more explicit for better clarity. Fixes: 0116765035eb ("sched_deadline, docs: add affinity setting with cgroup2 cpuset controller") Signed-off-by: Matteo Martelli <matteo.martelli@codethink.co.uk> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260223-docs-sched-deadline-fix-example-v1-1-8d0bedc2bc6f@codethink.co.uk>
-rw-r--r--Documentation/scheduler/sched-deadline.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/scheduler/sched-deadline.rst b/Documentation/scheduler/sched-deadline.rst
index ec543a12f848..d23e4afe1a9a 100644
--- a/Documentation/scheduler/sched-deadline.rst
+++ b/Documentation/scheduler/sched-deadline.rst
@@ -700,7 +700,8 @@ Deadline Task Scheduling
5.2 Using cgroup v2 cpuset controller
-------------------------------------
- Assuming the cgroup v2 root is mounted at ``/sys/fs/cgroup``.
+ Assuming the cgroup v2 root is mounted at ``/sys/fs/cgroup``, an example of a
+ simple configuration (pin a -deadline task to CPU0) follows::
cd /sys/fs/cgroup
echo '+cpuset' > cgroup.subtree_control