From: Matteo Martelli <matteo.martelli@codethink.co.uk>
To: Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Shashank Balaji <shashank.mahadasyam@sony.com>,
Juri Lelli <juri.lelli@redhat.com>
Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Matteo Martelli <matteo.martelli@codethink.co.uk>
Subject: [PATCH] sched_deadline, docs: fix cpuset example for cgroupv2
Date: Mon, 23 Feb 2026 14:05:31 +0100 [thread overview]
Message-ID: <20260223-docs-sched-deadline-fix-example-v1-1-8d0bedc2bc6f@codethink.co.uk> (raw)
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>
---
Documentation/scheduler/sched-deadline.rst | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
---
base-commit: e1e828a1e9a79af76a7cdc271e0a506e496c2eaa
change-id: 20260223-docs-sched-deadline-fix-example-1d4806d2525e
Best regards,
--
Matteo Martelli <matteo.martelli@codethink.co.uk>
next reply other threads:[~2026-02-23 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-23 13:05 Matteo Martelli [this message]
2026-03-03 17:59 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260223-docs-sched-deadline-fix-example-v1-1-8d0bedc2bc6f@codethink.co.uk \
--to=matteo.martelli@codethink.co.uk \
--cc=corbet@lwn.net \
--cc=juri.lelli@redhat.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shashank.mahadasyam@sony.com \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®