forked from openGauss-Ecosystem/openGauss-server
add rdtscp detect
This commit is contained in:
parent
f2475579f6
commit
81a52b291a
|
@ -157,9 +157,11 @@ function check_os() {
|
|||
exit 1
|
||||
fi
|
||||
# check cpu instruction
|
||||
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]
|
||||
then
|
||||
echo "The cpu instruction rdtscp is missing." && exit 1
|
||||
CPU_BIT=$(uname -m)
|
||||
if [ X"$CPU_BIT" == X"x86_64" ]; then
|
||||
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]; then
|
||||
echo "The cpu instruction rdtscp is missing." && exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue