public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched_deadline, docs: fix cpuset example for cgroupv2
@ 2026-02-23 13:05 Matteo Martelli
  2026-03-03 17:59 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Matteo Martelli @ 2026-02-23 13:05 UTC (permalink / raw)
  To: Jonathan Corbet, Shuah Khan, Shashank Balaji, Juri Lelli
  Cc: linux-doc, linux-kernel, Matteo Martelli

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>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sched_deadline, docs: fix cpuset example for cgroupv2
  2026-02-23 13:05 [PATCH] sched_deadline, docs: fix cpuset example for cgroupv2 Matteo Martelli
@ 2026-03-03 17:59 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2026-03-03 17:59 UTC (permalink / raw)
  To: Matteo Martelli, Shuah Khan, Shashank Balaji, Juri Lelli
  Cc: linux-doc, linux-kernel, Matteo Martelli

Matteo Martelli <matteo.martelli@codethink.co.uk> writes:

> 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

Applied, thanks.

jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-03 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 13:05 [PATCH] sched_deadline, docs: fix cpuset example for cgroupv2 Matteo Martelli
2026-03-03 17:59 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox