functions: Silence errors if module kvm_intel does not exist
Without the redirect to /dev/null, an error message would be reported in TuneD logs on aarch64 machines, which do not have the kernel module. Resolves: RHEL-79943
This commit is contained in:
parent
889387b000
commit
c9f678d8a1
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ setup_kvm_mod_low_latency()
|
|||
|
||||
modinfo -p kvm | grep -q kvmclock_periodic_sync && HAS_KPS=1
|
||||
modinfo -p kvm | grep -q nx_huge_pages && HAS_NX_HP=1
|
||||
modinfo -p kvm_intel | grep -q ple_gap && HAS_PLE_GAP=1
|
||||
modinfo -p kvm_intel 2>/dev/null | grep -q ple_gap && HAS_PLE_GAP=1
|
||||
grep -qs kvmclock_periodic_sync "$kvm_modprobe_file" && WANTS_KPS=1
|
||||
grep -qs nx_huge_pages "$kvm_modprobe_file" && WANTS_NX_HP=1
|
||||
grep -qs ple_gap "$kvm_modprobe_file" && WANTS_PLE_GAP=1
|
||||
|
|
|
|||
Loading…
Reference in a new issue