From 7dcbbb899b5ee0c68c490a88343305f20074f371 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 11 Oct 2021 22:14:31 +0000 Subject: tree: Remove .bss.slow The config option to enable .bss.slow was removed in commit b224441aaaa5dd08274811d65bb795b4abc231d8 because the option was only used with kunimitsu, which was removed from the EC codebase a long time ago. Remove the reference in the linker maps to complete the cleanup. BRANCH=none BUG=b:172020503, b:172221339 TEST=make buildall Signed-off-by: Tom Hughes Change-Id: Ibc519f9974cb26e6d15180e2ce0c359867ced1ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3219263 Reviewed-by: Ting Shen --- common/charge_state_v2.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/charge_state_v2.c') diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c index abfabda7a3..e767ec8d83 100644 --- a/common/charge_state_v2.c +++ b/common/charge_state_v2.c @@ -191,8 +191,8 @@ BUILD_ASSERT(ARRAY_SIZE(prob_text) == NUM_PROBLEM_TYPES); */ static void problem(enum problem_type p, int v) { - static int __bss_slow last_prob_val[NUM_PROBLEM_TYPES]; - static timestamp_t __bss_slow last_prob_time[NUM_PROBLEM_TYPES]; + static int last_prob_val[NUM_PROBLEM_TYPES]; + static timestamp_t last_prob_time[NUM_PROBLEM_TYPES]; timestamp_t t_now, t_diff; if (last_prob_val[p] != v) { @@ -848,7 +848,7 @@ static void update_dynamic_battery_info(void) uint8_t tmp; int send_batt_status_event = 0; int send_batt_info_event = 0; - static int __bss_slow batt_present; + static int batt_present; tmp = 0; if (curr.ac) @@ -1027,7 +1027,7 @@ static int update_static_battery_info(void) static void update_dynamic_battery_info(void) { - static int __bss_slow batt_present; + static int batt_present; uint8_t tmp; int send_batt_status_event = 0; int send_batt_info_event = 0; @@ -1282,7 +1282,7 @@ static void show_charging_progress(void) /* Calculate if battery is full based on whether it is accepting charge */ test_mockable int calc_is_full(void) { - static int __bss_slow ret; + static int ret; /* If bad state of charge reading, return last value */ if (curr.batt.flags & BATT_FLAG_BAD_STATE_OF_CHARGE || @@ -1306,7 +1306,7 @@ test_mockable int calc_is_full(void) static int charge_request(int voltage, int current) { int r1 = EC_SUCCESS, r2 = EC_SUCCESS, r3 = EC_SUCCESS, r4 = EC_SUCCESS; - static int __bss_slow prev_volt, prev_curr; + static int prev_volt, prev_curr; if (!voltage || !current) { #ifdef CONFIG_CHARGER_NARROW_VDC -- cgit v1.2.1