hv: shell: add cpuid command

Add cpuid shell command for test

Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
Li, Fei1
2018-04-04 15:28:49 +08:00
committed by Jack Ren
parent c83bcded99
commit ace23b5088
3 changed files with 44 additions and 0 deletions

View File

@@ -356,6 +356,17 @@ int shell_init(void)
pr_err("Error: Command \"%s\" registration failed.",
SHELL_CMD_SET_LOG_LVL);
}
status = shell_register_cmd(serial_session,
SHELL_CMD_CPUID,
SHELL_CMD_CPUID_PARAM,
SHELL_CMD_CPUID_HELP,
shell_cpuid);
if (status != 0) {
pr_err("Error: Command \"%s\" registration failed.",
SHELL_CMD_CPUID);
}
}
return status;