From: Felix Schnizlein Date: Tue, 2 Jan 2018 09:18:54 +0000 (+0100) Subject: Append cpus to hotplug list instead of selecting the last one X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4bc12f37e81daef32a56bd74e4023bb7d6f265f9;p=users%2Fsagi%2Fblktests.git Append cpus to hotplug list instead of selecting the last one Due to a missing plus, available cpus where not collected but only the last possible one was used. Signed-off-by: Felix Schnizlein --- diff --git a/common/cpuhotplug b/common/cpuhotplug index 18baa18..6a790fe 100644 --- a/common/cpuhotplug +++ b/common/cpuhotplug @@ -26,7 +26,7 @@ _have_cpu_hotplug() { for cpu_dir in /sys/devices/system/cpu/cpu+([0-9]); do if [[ -w ${cpu_dir}/online ]]; then cpu="${cpu_dir#/sys/devices/system/cpu/cpu}" - HOTPLUGGABLE_CPUS=("$cpu") + HOTPLUGGABLE_CPUS+=("$cpu") CPUS_ONLINE_SAVED["$cpu"]="$(cat "${cpu_dir}/online")" fi done