deb-pkg: Delete the Hyper-threading check in preinst

The check logic of CPU num is wrong and needs to be deleted.
Hyper-threading check should be checked when getting board xml.

Tracked-On: #6688

Signed-off-by: Hu Fenglin <fenglin.hu@intel.com>
This commit is contained in:
Hu Fenglin 2022-01-14 13:16:46 +08:00 committed by wenlingz
parent 63d3a54285
commit 96d93be2a6
1 changed files with 0 additions and 21 deletions

View File

@ -10,27 +10,6 @@ else
echo "You are in acrn already, no need pre-check "
exit 0
fi
#check mem/cpu
cpunumsexp=4
percode=$(lscpu |awk '$1 == "Thread(s)" {print $NF}')
cputotal=$(lscpu |awk '$1 == "CPU(s):" {print $NF}')
if [[ $cputotal -eq $cpunumsexp ]]
then
echo "CPU cores config is ok"
elif [[ $cputotal -gt $cpunumsexp ]]
then
echo "Error ! hyper-threading config is not correct!"
echo "CPU(s) $cputotal should be $cpunumsexpThread(s) per core is $percode, please disable hyper-threading in bios"
elif [[ $cputotal -lt $cpunumsexp ]]
then
echo "Error ! hyper threading config is incorrect!"
echo "CPU(s) $cputotal should be $cpunumsexpThread(s) per core is $percode, please enable hyper-threading in bios"
fi
#check vt
vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true)