Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
frederic
/
cpunoise
/
088d2f672c3f60c9cf1979e53bdb5e081932dfac
/
.
/
dynticks_testing_lib.py
blob: 54df0697c3d0f999e7e24fd2860b1fd57f5c6d0c [
file
]
#!/usr/bin/python3
def
parse_cpulist
(
s
):
cpulist
=
[]
for
e
in
s
.
split
(
","
):
if
"-"
not
in
e
:
cpulist
.
append
(
int
(
e
))
else
:
(
start
,
end
)
=
e
.
split
(
"-"
)
cpulist
+=
range
(
int
(
start
),
int
(
end
)
+
1
)
return
cpulist