naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
ecbff1
From 99afbf6e7fac9f33f0f96c0397c413ba360607a2 Mon Sep 17 00:00:00 2001
ecbff1
From: Filipe Brandenburger <filbranden@google.com>
ecbff1
Date: Tue, 13 Oct 2015 00:12:39 -0700
ecbff1
Subject: [PATCH] man: Update man page documentation for CPUAffinity
ecbff1
ecbff1
Document support for commas as a separator and possibility of specifying
ecbff1
ranges of CPU indices.
ecbff1
ecbff1
Tested by regenerating the manpages locally and reading them on man.
ecbff1
ecbff1
(cherry picked from commit 71b1c27a406271b71f64487ae70b58f44a4a37f0)
ecbff1
Resolves: #1493976
ecbff1
---
ecbff1
 man/systemd-system.conf.xml | 6 ++++--
ecbff1
 man/systemd.exec.xml        | 6 ++++--
ecbff1
 2 files changed, 8 insertions(+), 4 deletions(-)
ecbff1
ecbff1
diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml
ecbff1
index 53e8ff665..1861bb03f 100644
ecbff1
--- a/man/systemd-system.conf.xml
ecbff1
+++ b/man/systemd-system.conf.xml
ecbff1
@@ -117,8 +117,10 @@
ecbff1
         <term><varname>CPUAffinity=</varname></term>
ecbff1
 
ecbff1
         <listitem><para>Configures the initial CPU affinity for the
ecbff1
-        init process. Takes a space-separated list of CPU
ecbff1
-        indices.</para></listitem>
ecbff1
+        init process. Takes a list of CPU indices or ranges separated
ecbff1
+        by either whitespace or commas. CPU ranges are specified by
ecbff1
+        the lower and upper CPU indices separated by a
ecbff1
+        dash.</para></listitem>
ecbff1
       </varlistentry>
ecbff1
 
ecbff1
       <varlistentry>
ecbff1
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
ecbff1
index 508146f06..d7503b8e8 100644
ecbff1
--- a/man/systemd.exec.xml
ecbff1
+++ b/man/systemd.exec.xml
ecbff1
@@ -211,8 +211,10 @@
ecbff1
         <term><varname>CPUAffinity=</varname></term>
ecbff1
 
ecbff1
         <listitem><para>Controls the CPU affinity of the executed
ecbff1
-        processes. Takes a space-separated list of CPU indices. This
ecbff1
-        option may be specified more than once in which case the
ecbff1
+        processes. Takes a list of CPU indices or ranges separated by
ecbff1
+        either whitespace or commas. CPU ranges are specified by the
ecbff1
+        lower and upper CPU indices separated by a dash.
ecbff1
+        This option may be specified more than once in which case the
ecbff1
         specified CPU affinity masks are merged. If the empty string
ecbff1
         is assigned, the mask is reset, all assignments prior to this
ecbff1
         will have no effect. See