mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
Rename POWERSTATE task to CHARGER
Since POWERSTATE is confusing whether it refers to battery power or system power. BUG=chrome-os-partner:15579 BRANCH=none TEST=taskinfo; see CHARGER task Change-Id: I5a237b1329cace4ce48ae39d8954c08a9912ed4b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36707
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
TASK(LPC, lpc_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(VBOOTHASH, vboot_hash_task, NULL, LARGER_TASK_STACK_SIZE) \
|
||||
TASK(LIGHTBAR, lightbar_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(POWERSTATE, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(CHARGER, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(TEMPSENSOR, temp_sensor_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(THERMAL, thermal_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(PWM, pwm_task, NULL, TASK_STACK_SIZE) \
|
||||
|
||||
@@ -21,12 +21,12 @@ common-$(CONFIG_LPC)+=port80.o
|
||||
common-$(CONFIG_POWER_LED)+=power_led.o
|
||||
common-$(CONFIG_PSTORE)+=pstore_commands.o
|
||||
common-$(CONFIG_SMART_BATTERY)+=smart_battery.o smart_battery_stub.o
|
||||
common-$(CONFIG_TASK_CHARGER)+=charge_state.o battery_precharge.o
|
||||
common-$(CONFIG_TASK_CONSOLE)+=console.o
|
||||
common-$(CONFIG_TASK_GAIAPOWER)+=gaia_power.o
|
||||
common-$(CONFIG_TASK_HOSTCMD)+=host_command.o host_event_commands.o
|
||||
common-$(CONFIG_TASK_I8042CMD)+=i8042.o keyboard.o
|
||||
common-$(CONFIG_TASK_LIGHTBAR)+=lightbar.o
|
||||
common-$(CONFIG_TASK_POWERSTATE)+=charge_state.o battery_precharge.o
|
||||
common-$(CONFIG_TASK_TEMPSENSOR)+=temp_sensor.o
|
||||
common-$(CONFIG_TASK_THERMAL)+=thermal.o
|
||||
common-$(CONFIG_TASK_VBOOTHASH)+=sha256.o vboot_hash.o
|
||||
|
||||
@@ -804,7 +804,7 @@ void charge_state_machine_task(void)
|
||||
static void charge_hook(void)
|
||||
{
|
||||
/* Wake up the task now */
|
||||
task_wake(TASK_ID_POWERSTATE);
|
||||
task_wake(TASK_ID_CHARGER);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_RESUME, charge_hook, HOOK_PRIO_DEFAULT);
|
||||
DECLARE_HOOK(HOOK_AC_CHANGE, charge_hook, HOOK_PRIO_DEFAULT);
|
||||
|
||||
@@ -268,7 +268,7 @@ static void get_battery_level(void)
|
||||
if (demo_mode)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_TASK_POWERSTATE
|
||||
#ifdef CONFIG_TASK_CHARGER
|
||||
pct = charge_get_percent();
|
||||
st.battery_is_charging = (PWR_STATE_DISCHARGE != charge_get_state());
|
||||
#endif
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
TASK(VBOOTHASH, vboot_hash_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(PWM, pwm_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(TYPEMATIC, keyboard_typematic_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(POWERSTATE, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(CHARGER, charge_state_machine_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(X86POWER, x86_power_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(I8042CMD, i8042_command_task, NULL, TASK_STACK_SIZE) \
|
||||
TASK(KEYSCAN, keyboard_scan_task, NULL, TASK_STACK_SIZE) \
|
||||
|
||||
Reference in New Issue
Block a user