Skip to content

Commit

Permalink
Don't hardcode cpu frequency in test_codec
Browse files Browse the repository at this point in the history
Change-Id: Idcd7b024edb7a550b42b935fadfb3d869bab14c6
  • Loading branch information
wodz committed Mar 22, 2012
1 parent 313034d commit b0df323
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/plugins/test_codec.c
Expand Up @@ -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",
Expand Down

0 comments on commit b0df323

Please sign in to comment.