1
0
Fork 0
forked from len0rd/rockbox

Removed the cpu boost tracking debug feature for now because of

different kind of problems. Better implementation can be done later.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11665 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-12-05 20:01:48 +00:00
parent 5f15f8f021
commit c5d57f0aae
9 changed files with 33 additions and 99 deletions

View file

@ -1280,11 +1280,7 @@ bool dbg_cpufreq(void)
snprintf(buf, sizeof(buf), "Frequency: %ld", FREQ);
lcd_puts(0, line++, buf);
#ifdef CPU_BOOST_TRACKING
snprintf(buf, sizeof(buf), "boost_counter: %d %s", get_cpu_boost_counter(), get_cpu_boost_tracker());
#else
snprintf(buf, sizeof(buf), "boost_counter: %d", get_cpu_boost_counter());
#endif
lcd_puts(0, line++, buf);
lcd_update();
@ -1293,16 +1289,16 @@ bool dbg_cpufreq(void)
switch(button)
{
case ACTION_STD_PREV:
cpu_boost_id(true, CPUBOOSTID_DEBUGMENU_MANUAL);
cpu_boost(true);
break;
case ACTION_STD_NEXT:
cpu_boost_id(false, CPUBOOSTID_DEBUGMENU_MANUAL);
cpu_boost(false);
break;
case ACTION_STD_OK:
while (get_cpu_boost_counter() > 0)
cpu_boost_id(false, CPUBOOSTID_DEBUGMENU_MANUAL);
cpu_boost(false);
set_cpu_frequency(CPUFREQ_DEFAULT);
break;