diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index 70fc3ac46e..fa650739f5 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1258,7 +1258,6 @@ bool dbg_ports(void) | |||
1258 | #endif /* !SIMULATOR */ | 1258 | #endif /* !SIMULATOR */ |
1259 | 1259 | ||
1260 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 1260 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
1261 | extern int boost_counter; | ||
1262 | bool dbg_cpufreq(void) | 1261 | bool dbg_cpufreq(void) |
1263 | { | 1262 | { |
1264 | char buf[128]; | 1263 | char buf[128]; |
@@ -1278,7 +1277,11 @@ bool dbg_cpufreq(void) | |||
1278 | snprintf(buf, sizeof(buf), "Frequency: %ld", FREQ); | 1277 | snprintf(buf, sizeof(buf), "Frequency: %ld", FREQ); |
1279 | lcd_puts(0, line++, buf); | 1278 | lcd_puts(0, line++, buf); |
1280 | 1279 | ||
1281 | snprintf(buf, sizeof(buf), "boost_counter: %d", boost_counter); | 1280 | #ifdef CPU_BOOST_TRACKING |
1281 | snprintf(buf, sizeof(buf), "boost_counter: %d %s", get_cpu_boost_counter(), get_cpu_boost_tracker()); | ||
1282 | #else | ||
1283 | snprintf(buf, sizeof(buf), "boost_counter: %d", get_cpu_boost_counter()); | ||
1284 | #endif | ||
1282 | lcd_puts(0, line++, buf); | 1285 | lcd_puts(0, line++, buf); |
1283 | 1286 | ||
1284 | lcd_update(); | 1287 | lcd_update(); |
@@ -1287,15 +1290,16 @@ bool dbg_cpufreq(void) | |||
1287 | switch(button) | 1290 | switch(button) |
1288 | { | 1291 | { |
1289 | case ACTION_STD_PREV: | 1292 | case ACTION_STD_PREV: |
1290 | cpu_boost(true); | 1293 | cpu_boost_id(true, CPUBOOSTID_DEBUGMENU_MANUAL); |
1291 | break; | 1294 | break; |
1295 | |||
1292 | case ACTION_STD_NEXT: | 1296 | case ACTION_STD_NEXT: |
1293 | cpu_boost(false); | 1297 | cpu_boost_id(false, CPUBOOSTID_DEBUGMENU_MANUAL); |
1294 | break; | 1298 | break; |
1295 | 1299 | ||
1296 | case ACTION_STD_OK: | 1300 | case ACTION_STD_OK: |
1297 | set_cpu_frequency(CPUFREQ_DEFAULT); | 1301 | while (get_cpu_boost_counter() > 0) |
1298 | boost_counter = 0; | 1302 | cpu_boost_id(false, CPUBOOSTID_DEBUGMENU_MANUAL); |
1299 | break; | 1303 | break; |
1300 | 1304 | ||
1301 | case ACTION_STD_CANCEL: | 1305 | case ACTION_STD_CANCEL: |