Skip to content

Commit

Permalink
ifs_common.sh: fix the sibling cpu list issue
Browse files Browse the repository at this point in the history
In order to filter the correct sibling cpu list, fix the ALL_CPUS format in
one line.

Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe authored and ysun committed Oct 20, 2023
1 parent c7b4eef commit 14e7ada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ifs/ifs_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ get_depend_sibling_cpus() {
cpu_num=$(grep -c processor /proc/cpuinfo)
# Show all cpu list in one line, reason:echo could make them in 1 line!
ALL_CPUS=$(seq 0 $((cpu_num - 1)))
# Will use the ALL_CPUS to remove SIBLINGS cpu
ALL_CPUS=$(echo $(seq 0 $((cpu_num - 1))))
ALL_CPUS=" $ALL_CPUS "
echo "$ALL_CPUS" > $SIBLINGS
# atom used "-" and server used "," to isolate
Expand Down

0 comments on commit 14e7ada

Please sign in to comment.