From 5470e3b80e36e1c06015bca3aa4641d7268cf1e6 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Tue, 17 Jan 2017 10:14:41 -0800 Subject: poppy: updating variable name to power_button_pulse_enable Updating variable name from smi_enabled to power_button_pulse_enabled, which is a more accurate description of the intended functionality. BUG=chrome-os-partner:61275 BRANCH=None TEST=reboot reef and try using power button for selection during the detachable menus and ensure that the DUT doesn't turn off. Change-Id: Ia04e032818c73439d2aeacdb8fcabbe3bce7c151 Signed-off-by: Shelley Chen Reviewed-on: https://chromium-review.googlesource.com/429070 Reviewed-by: Duncan Laurie --- common/power_button_x86.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/power_button_x86.c b/common/power_button_x86.c index ee85bc5c6d..9b75c51c26 100644 --- a/common/power_button_x86.c +++ b/common/power_button_x86.c @@ -115,7 +115,7 @@ static uint64_t tnext_state; /* * Determines whether to execute initial SMI pulse (t0 stage) */ -static int smi_enabled = 1; +static int power_button_pulse_enabled = 1; static void set_pwrbtn_to_pch(int high, int init) { @@ -272,7 +272,7 @@ static void state_machine(uint64_t tnow) pwrbtn_state = PWRBTN_STATE_WAS_OFF; set_pwrbtn_to_pch(0, 0); } else { - if (smi_enabled) { + if (power_button_pulse_enabled) { /* Chipset is on, so send the chipset a pulse */ tnext_state = tnow + PWRBTN_DELAY_T0; pwrbtn_state = PWRBTN_STATE_T0; @@ -479,7 +479,8 @@ static int hc_config_powerbtn_x86(struct host_cmd_handler_args *args) { const struct ec_params_config_power_button *p = args->params; - smi_enabled = p->flags & (1 << EC_POWER_BUTTON_ENABLE_SMI_PULSE); + power_button_pulse_enabled = + p->flags & (1 << EC_POWER_BUTTON_ENABLE_SMI_PULSE); return EC_SUCCESS; } -- cgit v1.2.1