From 686dcd88c2e4147ec5731647c569d8ef4c7064b5 Mon Sep 17 00:00:00 2001 From: Gal Hammer Date: Wed, 6 Apr 2022 12:37:18 +0300 Subject: [PATCH] scripts: Do msr existence check only on x86_64 machines aarch64 doesn't have a msr module (DPDK acquires the TSR rate elsewhere). Signed-off-by: Gal Hammer Signed-off-by: Shai Fultheim Change-Id: Ib9795141a78436959853ab5548ae49f024344b25 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12354 Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 26414087a..8a603a7db 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -570,7 +570,7 @@ function configure_linux() { fi fi - if [ ! -e /dev/cpu/0/msr ]; then + if [ $(uname -i) == "x86_64" ] && [ ! -e /dev/cpu/0/msr ]; then # Some distros build msr as a module. Make sure it's loaded to ensure # DPDK can easily figure out the TSC rate rather than relying on 100ms # sleeps.