* [PATCH] rteval: Add missing docstrings in SysTopology
@ 2023-07-26 8:22 tglozar
2023-07-26 13:42 ` John Kacur
0 siblings, 1 reply; 2+ messages in thread
From: tglozar @ 2023-07-26 8:22 UTC (permalink / raw)
To: linux-rt-users; +Cc: jkacur, Tomas Glozar
From: Tomas Glozar <tglozar@redhat.com>
Add docstrings for isolated_cpus_str and default_cpus_str.
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
---
rteval/systopology.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rteval/systopology.py b/rteval/systopology.py
index 19443f9..a991e70 100644
--- a/rteval/systopology.py
+++ b/rteval/systopology.py
@@ -407,10 +407,12 @@ class SysTopology:
return cpulist
def isolated_cpus_str(self):
+ """ return a list of strings of numbers of all isolated cpus """
cpulist = [str(cpu) for cpu in self.isolated_cpus()]
return cpulist
def default_cpus_str(self):
+ """ return a list of strings of numbers of all default schedulable cpus """
cpulist = [str(cpu) for cpu in self.default_cpus()]
return cpulist
--
2.39.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] rteval: Add missing docstrings in SysTopology
2023-07-26 8:22 [PATCH] rteval: Add missing docstrings in SysTopology tglozar
@ 2023-07-26 13:42 ` John Kacur
0 siblings, 0 replies; 2+ messages in thread
From: John Kacur @ 2023-07-26 13:42 UTC (permalink / raw)
To: Tomas Glozar; +Cc: linux-rt-users
On Wed, 26 Jul 2023, tglozar@redhat.com wrote:
> From: Tomas Glozar <tglozar@redhat.com>
>
> Add docstrings for isolated_cpus_str and default_cpus_str.
>
> Signed-off-by: Tomas Glozar <tglozar@redhat.com>
> ---
> rteval/systopology.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/rteval/systopology.py b/rteval/systopology.py
> index 19443f9..a991e70 100644
> --- a/rteval/systopology.py
> +++ b/rteval/systopology.py
> @@ -407,10 +407,12 @@ class SysTopology:
> return cpulist
>
> def isolated_cpus_str(self):
> + """ return a list of strings of numbers of all isolated cpus """
> cpulist = [str(cpu) for cpu in self.isolated_cpus()]
> return cpulist
>
> def default_cpus_str(self):
> + """ return a list of strings of numbers of all default schedulable cpus """
> cpulist = [str(cpu) for cpu in self.default_cpus()]
> return cpulist
>
> --
> 2.39.3
>
>
Signed-off-by: John Kacur <jkacur@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-26 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 8:22 [PATCH] rteval: Add missing docstrings in SysTopology tglozar
2023-07-26 13:42 ` John Kacur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).