]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched_deadline, docs: fix cpuset example for cgroupv2
authorMatteo Martelli <matteo.martelli@codethink.co.uk>
Mon, 23 Feb 2026 13:05:31 +0000 (14:05 +0100)
committerJonathan Corbet <corbet@lwn.net>
Tue, 3 Mar 2026 17:59:08 +0000 (10:59 -0700)
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>

Documentation/scheduler/sched-deadline.rst

index ec543a12f848e9d7215cc72c6068cf7b6b925dd8..d23e4afe1a9adb3594f410c0404d0b5aef2914c0 100644 (file)
@@ -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