config_tools: update loading msr driver logic
load msr driver if not found cpu number.
@@ -54,7 +54,7 @@ def check_env():
# check cpu msr file
cpu_dirs = "/dev/cpu"
- if check_msr_files(cpu_dirs):
+ if not check_msr_files(cpu_dirs):
res = subprocess.Popen("modprobe msr",
shell=True, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
