summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2012-03-22 18:41:05 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2012-03-22 18:41:05 +0100
commitb0df3233917c51049a380f04b909f061de828972 (patch)
tree05405f971c920a25520e184e33106d93df70c9c4
parent313034df291727fdce18e3fedc5cff1984f20cad (diff)
downloadrockbox-b0df3233917c51049a380f04b909f061de828972.tar.gz
rockbox-b0df3233917c51049a380f04b909f061de828972.tar.bz2
rockbox-b0df3233917c51049a380f04b909f061de828972.zip
Don't hardcode cpu frequency in test_codec
Change-Id: Idcd7b024edb7a550b42b935fadfb3d869bab14c6
-rw-r--r--apps/plugins/test_codec.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 6d915d66e4..b0f48fca4d 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -764,12 +764,8 @@ static enum plugin_status test_track(const char* filename)
/* show effective clockrate in MHz needed for realtime decoding */
if (speed > 0)
{
- int freq = CPUFREQ_MAX;
-
-#ifdef HAVE_ADJUSTABLE_CPU_FREQ
- if(!boost)
- freq = CPUFREQ_NORMAL;
-#endif
+ int freq;
+ freq = *rb->cpu_frequency;
speed = freq / speed;
rb->snprintf(str,sizeof(str),"%d.%02dMHz needed for realtime",