summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-29 10:06:06 +0000
committerAidan MacDonald <amachronic@protonmail.com>2021-12-05 13:14:47 -0500
commita6e90d23550b83cf6c83db4f3e3046b7b196c1fd (patch)
treef6fd1d11300975ca686142ce8440c3d678fcda7d /firmware
parent34b7b715e8ac83142a8f16e26a7b17c47f2d5642 (diff)
downloadrockbox-a6e90d23550b83cf6c83db4f3e3046b7b196c1fd.tar.gz
rockbox-a6e90d23550b83cf6c83db4f3e3046b7b196c1fd.zip
powermgmt: Remove outdated defines
CHARGING_DEBUG_FILE is not referenced anywhere else so just remove the #ifdef block. Change-Id: Icf4bd4edb7d38bdc86477d7d1f4e7bf9cf697d31
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/powermgmt.h6
-rw-r--r--firmware/powermgmt.c4
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;
104#endif 104#endif
105#endif /* CONFIG_CHARGING */ 105#endif /* CONFIG_CHARGING */
106 106
107#ifdef CHARGING_DEBUG_FILE
108#define POWERMGMT_DEBUG_STACK ((0x1000)/sizeof(long))
109#else
110#define POWERMGMT_DEBUG_STACK 0
111#endif
112
113#ifndef BATT_AVE_SAMPLES 107#ifndef BATT_AVE_SAMPLES
114/* slw filter constant unless otherwise specified */ 108/* slw filter constant unless otherwise specified */
115#define BATT_AVE_SAMPLES 128 109#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};
129 129
130#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \ 130#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \
131 (CONFIG_CPU == X1000) || (CONFIG_PLATFORM & PLATFORM_HOSTED) 131 (CONFIG_CPU == X1000) || (CONFIG_PLATFORM & PLATFORM_HOSTED)
132static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; 132static char power_stack[DEFAULT_STACK_SIZE];
133#else 133#else
134static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; 134static char power_stack[DEFAULT_STACK_SIZE/2];
135#endif 135#endif
136static const char power_thread_name[] = "power"; 136static const char power_thread_name[] = "power";
137 137