1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-12-22 20:33:56 +01:00

Fix trailing whitespace and mixed indent styles;

This commit is contained in:
Benjamin Bouvier 2018-04-08 21:14:18 +02:00 committed by Stéphane Lesimple
parent 67bf761029
commit 417d7aab91

View File

@ -1304,7 +1304,7 @@ number_of_cpus()
}
# $1 - msr number
# $2 - cpu index
# $2 - cpu index
write_msr()
{
if [ "$os" != Linux ]; then
@ -1384,7 +1384,7 @@ check_cpu()
val=0
cpu_mismatch=0
for i in $(seq 0 "$idx_max_cpu")
do
do
read_msr 0x48 "$i"; ret=$?
if [ "$i" -eq 0 ]; then
val=$ret
@ -1454,7 +1454,7 @@ check_cpu()
val=0
cpu_mismatch=0
for i in $(seq 0 "$idx_max_cpu")
do
do
write_msr 0x49 "$i"; ret=$?
if [ "$i" -eq 0 ]; then
val=$ret
@ -1550,7 +1550,7 @@ check_cpu()
val_cap_msr=0
cpu_mismatch=0
for i in $(seq 0 "$idx_max_cpu")
do
do
read_msr 0x10a "$i"; ret=$?
capabilities=$(echo "$read_msr_value" | awk '{print $8}')
if [ "$i" -eq 0 ]; then
@ -2017,7 +2017,7 @@ check_variant2_linux()
else
pstatus yellow NO
if [ -e "$specex_knob_dir/ibrs_enabled" ]; then
_verbose " - To enable, \`echo 1 > $specex_knob_dir/ibrs_enabled' as root. If you don't have hardware support, you'll get an error."
_verbose " - To enable, \`echo 1 > $specex_knob_dir/ibrs_enabled' as root. If you don't have hardware support, you'll get an error."
fi
fi
;;