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:
parent
63d3a54285
commit
96d93be2a6
|
@ -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 $cpunumsexp,Thread(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 $cpunumsexp,Thread(s) per core is $percode, please enable hyper-threading in bios"
|
||||
fi
|
||||
|
||||
|
||||
#check vt
|
||||
vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true)
|
||||
|
|
Loading…
Reference in New Issue