summaryrefslogtreecommitdiff
path: root/firmware/system.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-03-07 10:51:43 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-03-07 10:51:43 +0000
commit213d34ed1d23dbc69570863f1587b96bc346a9f1 (patch)
tree9c6a5c04947903c3b418105351fc5d2a206b5784 /firmware/system.c
parent5152eca7d40a1dae57c51f4dfe635c683291ad34 (diff)
Dedicated CPU frequency debug screen for CPU's with PLL
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6161 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/system.c b/firmware/system.c
index 1cafc8f096..03414924ca 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -29,13 +29,13 @@ long cpu_frequency = CPU_FREQ;
#endif
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+int boost_counter = 0;
void cpu_boost(bool on_off)
{
- static int counter = 0;
if(on_off)
{
/* Boost the frequency if not already boosted */
- if(counter++ == 0)
+ if(boost_counter++ == 0)
{
set_cpu_frequency(CPUFREQ_MAX);
}
@@ -43,14 +43,14 @@ void cpu_boost(bool on_off)
else
{
/* Lower the frequency if the counter reaches 0 */
- if(--counter == 0)
+ if(--boost_counter == 0)
{
set_cpu_frequency(CPUFREQ_NORMAL);
}
/* Safety measure */
- if(counter < 0)
- counter = 0;
+ if(boost_counter < 0)
+ boost_counter = 0;
}
}
#endif