forked from len0rd/rockbox
powermgmt: Remove outdated defines
CHARGING_DEBUG_FILE is not referenced anywhere else so just remove the #ifdef block. Change-Id: Icf4bd4edb7d38bdc86477d7d1f4e7bf9cf697d31
This commit is contained in:
parent
34b7b715e8
commit
a6e90d2355
2 changed files with 2 additions and 8 deletions
|
@ -104,12 +104,6 @@ void powermgmt_init(void) INIT_ATTR;
|
||||||
#endif
|
#endif
|
||||||
#endif /* CONFIG_CHARGING */
|
#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
|
#ifndef BATT_AVE_SAMPLES
|
||||||
/* slw filter constant unless otherwise specified */
|
/* slw filter constant unless otherwise specified */
|
||||||
#define BATT_AVE_SAMPLES 128
|
#define BATT_AVE_SAMPLES 128
|
||||||
|
|
|
@ -129,9 +129,9 @@ unsigned short power_history[POWER_HISTORY_LEN] = {0};
|
||||||
|
|
||||||
#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \
|
#if (CONFIG_CPU == JZ4732) || (CONFIG_CPU == JZ4760B) || \
|
||||||
(CONFIG_CPU == X1000) || (CONFIG_PLATFORM & PLATFORM_HOSTED)
|
(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
|
#else
|
||||||
static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK];
|
static char power_stack[DEFAULT_STACK_SIZE/2];
|
||||||
#endif
|
#endif
|
||||||
static const char power_thread_name[] = "power";
|
static const char power_thread_name[] = "power";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue