Added few #ifdef HAVE_ADJUSTABLE_CPU_FREQ.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6782 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0cb7511643
commit
387c4f2fe8
2 changed files with 10 additions and 3 deletions
|
@ -83,8 +83,9 @@ 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;
|
||||
|
||||
|
@ -155,7 +156,9 @@ void TIMER1(void)
|
|||
|
||||
if (idle)
|
||||
{
|
||||
cpu_boost(false);
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
cpu_boost(true);
|
||||
#endif
|
||||
bl_timer_active = false;
|
||||
TMR1 = 0;
|
||||
}
|
||||
|
@ -177,7 +180,9 @@ void backlight_allow_timer(bool on)
|
|||
|
||||
if (!timer_allowed && bl_timer_active)
|
||||
{
|
||||
cpu_boost(false);
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
cpu_boost(true);
|
||||
#endif
|
||||
bl_dim_current = bl_dim_target;
|
||||
bl_timer_active = false;
|
||||
TMR1 = 0;
|
||||
|
|
|
@ -114,7 +114,9 @@ void pcm_boost(bool state)
|
|||
return ;
|
||||
|
||||
if (state != boost_state) {
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||
cpu_boost(state);
|
||||
#endif
|
||||
boost_state = state;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue