diff options
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r-- | firmware/powermgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 4d554d6d3c..6027414b71 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -86,7 +86,7 @@ void handle_auto_poweroff(void); | |||
86 | static int poweroff_timeout = 0; | 86 | static int poweroff_timeout = 0; |
87 | static long last_event_tick = 0; | 87 | static long last_event_tick = 0; |
88 | 88 | ||
89 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) | 89 | #if (CONFIG_PLATFORM & PLATFORM_NATIVE) || defined(SAMSUNG_YPR0) |
90 | /* | 90 | /* |
91 | * Average battery voltage and charger voltage, filtered via a digital | 91 | * Average battery voltage and charger voltage, filtered via a digital |
92 | * exponential filter (aka. exponential moving average, scaled): | 92 | * exponential filter (aka. exponential moving average, scaled): |
@@ -108,7 +108,7 @@ static int battery_type = 0; | |||
108 | /* Power history: power_history[0] is the newest sample */ | 108 | /* Power history: power_history[0] is the newest sample */ |
109 | unsigned short power_history[POWER_HISTORY_LEN] = {0}; | 109 | unsigned short power_history[POWER_HISTORY_LEN] = {0}; |
110 | 110 | ||
111 | #if CONFIG_CPU == JZ4732 /* FIXME! */ | 111 | #if CONFIG_CPU == JZ4732 /* FIXME! */ || (CONFIG_PLATFORM & PLATFORM_HOSTED) |
112 | static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; | 112 | static char power_stack[DEFAULT_STACK_SIZE + POWERMGMT_DEBUG_STACK]; |
113 | #else | 113 | #else |
114 | static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; | 114 | static char power_stack[DEFAULT_STACK_SIZE/2 + POWERMGMT_DEBUG_STACK]; |