summaryrefslogtreecommitdiff
path: root/kernel/cgroup
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2022-11-13 14:44:49 +0300
committerTejun Heo <tj@kernel.org>2022-11-15 00:37:56 +0300
commit35b7fa4ed1b104fa0bc762caa8049640e85b8cd7 (patch)
tree2c6766180ce6e2f30f8e1bdc90716799cee80491 /kernel/cgroup
parent79a7f41f7f5ac69fd22eaf1fb3e230bea95f3399 (diff)
downloadlinux-35b7fa4ed1b104fa0bc762caa8049640e85b8cd7.tar.xz
kselftest/cgroup: Fix gathering number of CPUs
test_cpuset_prs.sh is failing with the following error: test_cpuset_prs.sh: line 29: [[: 8 57%: syntax error in expression (error token is "57%") This is happening because `lscpu | grep "^CPU(s)"` returns two lines in some systems (such as Debian unstable): # lscpu | grep "^CPU(s)" CPU(s): 8 CPU(s) scaling MHz: 55% This is a simple fix that discard the second line. Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup')
0 files changed, 0 insertions, 0 deletions