diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-06-20 19:10:47 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-20 19:10:47 +0000 |
| commit | 78da1ff222beb6aea56a2145dfe73597aadaadec (patch) | |
| tree | 3ae38090fe499d8613bac3f409f64a7e6bc86aa5 | |
| parent | 387c4f2fe804cfaea1f4e676d98582ace86aa71b (diff) | |
| download | rockbox-78da1ff222beb6aea56a2145dfe73597aadaadec.zip rockbox-78da1ff222beb6aea56a2145dfe73597aadaadec.tar.gz rockbox-78da1ff222beb6aea56a2145dfe73597aadaadec.tar.bz2 rockbox-78da1ff222beb6aea56a2145dfe73597aadaadec.tar.xz | |
The last commit mixed up the arguments of cpu_boost(). Fixed that and removed the #ifdefs again, added #define cpui_boost(on_off) for fixed frequency platforms instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6783 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/backlight.c | 10 | ||||
| -rw-r--r-- | firmware/export/system.h | 1 |
2 files changed, 3 insertions, 8 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index 3b58637..98b2d9a 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -83,9 +83,7 @@ void backlight_start_timer(void) return ; /* Prevent cpu frequency changes while dimming. */ -#ifdef HAVE_ADJUSTABLE_CPU_FREQ cpu_boost(true); -#endif count = 1; bl_timer_active = true; @@ -156,9 +154,7 @@ void TIMER1(void) if (idle) { -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - cpu_boost(true); -#endif + cpu_boost(false); bl_timer_active = false; TMR1 = 0; } @@ -180,9 +176,7 @@ void backlight_allow_timer(bool on) if (!timer_allowed && bl_timer_active) { -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - cpu_boost(true); -#endif + cpu_boost(false); bl_dim_current = bl_dim_target; bl_timer_active = false; TMR1 = 0; diff --git a/firmware/export/system.h b/firmware/export/system.h index bc54be3..e98c362 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -35,6 +35,7 @@ void set_cpu_frequency(long frequency); void cpu_boost(bool on_off); #else #define FREQ CPU_FREQ +#define cpu_boost(on_off) #endif #define BAUDRATE 9600 |