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
|
exit 1
|
||||||
fi
|
fi
|
||||||
# check cpu instruction
|
# check cpu instruction
|
||||||
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]
|
CPU_BIT=$(uname -m)
|
||||||
then
|
if [ X"$CPU_BIT" == X"x86_64" ]; then
|
||||||
echo "The cpu instruction rdtscp is missing." && exit 1
|
if [ X"$(cat /proc/cpuinfo | grep rdtscp | uniq)" == X"" ]; then
|
||||||
|
echo "The cpu instruction rdtscp is missing." && exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue