diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2021-11-29 10:06:06 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2021-12-05 13:14:47 -0500 |
commit | a6e90d23550b83cf6c83db4f3e3046b7b196c1fd (patch) | |
tree | f6fd1d11300975ca686142ce8440c3d678fcda7d | |
parent | 34b7b715e8ac83142a8f16e26a7b17c47f2d5642 (diff) | |
download | rockbox-a6e90d2355.tar.gz rockbox-a6e90d2355.zip |
powermgmt: Remove outdated defines
CHARGING_DEBUG_FILE is not referenced anywhere else so
just remove the #ifdef block.
Change-Id: Icf4bd4edb7d38bdc86477d7d1f4e7bf9cf697d31
-rw-r--r-- | firmware/export/powermgmt.h | 6 | ||||
-rw-r--r-- | firmware/powermgmt.c | 4 |
2 files changed, 2 insertions, 8 deletions
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"; |