mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
Add powerinfo command to display CPU state
BUG=chrome-os-partner:10194 TEST=manual Run "powerinfo" at the EC console. Change-Id: I4c8fe8bc32ae6600bd8f0729e81bd239198c73fc Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/24578 Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -608,6 +608,17 @@ DECLARE_CONSOLE_COMMAND(x86reset, command_x86reset,
|
||||
"Issue x86 reset",
|
||||
NULL);
|
||||
|
||||
static int command_powerinfo(int argc, char **argv)
|
||||
{
|
||||
CPRINTF("[%T x86 power state %d = %s, in 0x%04x]\n",
|
||||
state, state_names[state], in_signals);
|
||||
return EC_SUCCESS;
|
||||
}
|
||||
DECLARE_CONSOLE_COMMAND(powerinfo, command_powerinfo,
|
||||
"",
|
||||
"Show current power state",
|
||||
NULL);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Host commands */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user