summaryrefslogtreecommitdiff
path: root/common/charge_state_v2.c
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-10-11 22:14:31 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-19 17:04:33 +0000
commit7dcbbb899b5ee0c68c490a88343305f20074f371 (patch)
tree5fd80f48d98226d7f80a81031e13d01f2f3a29d1 /common/charge_state_v2.c
parent01d23cbdea6fc63110733fd6d0701e7cf2612651 (diff)
downloadchrome-ec-7dcbbb899b5ee0c68c490a88343305f20074f371.tar.gz
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 <tomhughes@chromium.org> Change-Id: Ibc519f9974cb26e6d15180e2ce0c359867ced1ac Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3219263 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'common/charge_state_v2.c')
-rw-r--r--common/charge_state_v2.c12
1 files changed, 6 insertions, 6 deletions
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