From a6e90d23550b83cf6c83db4f3e3046b7b196c1fd Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 29 Nov 2021 10:06:06 +0000 Subject: powermgmt: Remove outdated defines CHARGING_DEBUG_FILE is not referenced anywhere else so just remove the #ifdef block. Change-Id: Icf4bd4edb7d38bdc86477d7d1f4e7bf9cf697d31 --- firmware/export/powermgmt.h | 6 ------ firmware/powermgmt.c | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'firmware') diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h index 235f5302f9..f45690573a 100644 --- a/firmware/export/powermgmt.h +++ b/firmware/export/powermgmt.h @@ -104,12 +104,6 @@ void powermgmt_init(void) INIT_ATTR; #endif #endif /* CONFIG_CHARGING */ -#ifdef CHARGING_DEBUG_FILE -#define POWERMGMT_DEBUG_STACK ((0x1000)/sizeof(long)) -#else -#define POWERMGMT_DEBUG_STACK 0 -#endif - #ifndef BATT_AVE_SAMPLES /* slw filter constant unless otherwise specified */ #define BATT_AVE_SAMPLES 128 diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 519823611f..8bfd41939f 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -129,9 +129,9 @@ unsigned short power_history[POWER_HISTORY_LEN] = {0}; #if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \ (CONFIG_CPU == X1000) || (CONFIG_PLATFORM & PLATFORM_HOSTED) -static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; +static char power_stack[DEFAULT_STACK_SIZE]; #else -static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; +static char power_stack[DEFAULT_STACK_SIZE/2]; #endif static const char power_thread_name[] = "power"; -- cgit v1.2.3