config_tools: update loading msr driver logic
load msr driver if not found cpu number. Tracked-On: #6689 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
parent
95c4d18423
commit
aeab5a29ae
|
@ -54,7 +54,7 @@ def check_env():
|
||||||
|
|
||||||
# check cpu msr file
|
# check cpu msr file
|
||||||
cpu_dirs = "/dev/cpu"
|
cpu_dirs = "/dev/cpu"
|
||||||
if check_msr_files(cpu_dirs):
|
if not check_msr_files(cpu_dirs):
|
||||||
res = subprocess.Popen("modprobe msr",
|
res = subprocess.Popen("modprobe msr",
|
||||||
shell=True, stdout=subprocess.PIPE,
|
shell=True, stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE, close_fds=True)
|
stderr=subprocess.PIPE, close_fds=True)
|
||||||
|
|
Loading…
Reference in New Issue