Commit 95c589e6 authored by Jim Harris's avatar Jim Harris Committed by Tomasz Zawadzki
Browse files

setup.sh: redirect modprobe msr error messages to /dev/null



We try to modprobe msr so that DPDK can more easily figure
out TSC on x86 systems.  But that just results in a
"Module msr not found" message on non-x86 systems.  setup.sh
still works, but the error message makes it appear
otherwise.  So just redirect the error message to reduce
this confusion.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I71074c7836519b003933551ce51a193070b1bfe6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12671


Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarPawel Piatek <pawelx.piatek@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarDong Yi <dongx.yi@intel.com>
parent dd474d02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -572,7 +572,7 @@ function configure_linux() {
		# 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.
		modprobe msr || true
		modprobe msr &> /dev/null || true
	fi
}