forked from len0rd/rockbox
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
This commit is contained in:
parent
387c4f2fe8
commit
78da1ff222
2 changed files with 3 additions and 8 deletions
|
@ -83,9 +83,7 @@ void backlight_start_timer(void)
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
/* Prevent cpu frequency changes while dimming. */
|
/* Prevent cpu frequency changes while dimming. */
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
|
||||||
cpu_boost(true);
|
cpu_boost(true);
|
||||||
#endif
|
|
||||||
count = 1;
|
count = 1;
|
||||||
bl_timer_active = true;
|
bl_timer_active = true;
|
||||||
|
|
||||||
|
@ -156,9 +154,7 @@ void TIMER1(void)
|
||||||
|
|
||||||
if (idle)
|
if (idle)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
cpu_boost(false);
|
||||||
cpu_boost(true);
|
|
||||||
#endif
|
|
||||||
bl_timer_active = false;
|
bl_timer_active = false;
|
||||||
TMR1 = 0;
|
TMR1 = 0;
|
||||||
}
|
}
|
||||||
|
@ -180,9 +176,7 @@ void backlight_allow_timer(bool on)
|
||||||
|
|
||||||
if (!timer_allowed && bl_timer_active)
|
if (!timer_allowed && bl_timer_active)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
cpu_boost(false);
|
||||||
cpu_boost(true);
|
|
||||||
#endif
|
|
||||||
bl_dim_current = bl_dim_target;
|
bl_dim_current = bl_dim_target;
|
||||||
bl_timer_active = false;
|
bl_timer_active = false;
|
||||||
TMR1 = 0;
|
TMR1 = 0;
|
||||||
|
|
|
@ -35,6 +35,7 @@ void set_cpu_frequency(long frequency);
|
||||||
void cpu_boost(bool on_off);
|
void cpu_boost(bool on_off);
|
||||||
#else
|
#else
|
||||||
#define FREQ CPU_FREQ
|
#define FREQ CPU_FREQ
|
||||||
|
#define cpu_boost(on_off)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BAUDRATE 9600
|
#define BAUDRATE 9600
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue