diff options
-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; | |||
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) |
132 | static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; | 132 | static char power_stack[DEFAULT_STACK_SIZE]; |
133 | #else | 133 | #else |
134 | static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; | 134 | static char power_stack[DEFAULT_STACK_SIZE/2]; |
135 | #endif | 135 | #endif |
136 | static const char power_thread_name[] = "power"; | 136 | static const char power_thread_name[] = "power"; |
137 | 137 | ||