Applied. On Fri, Mar 11, 2011 at 5:20 PM, Vasily Khoruzhick <anarsoul@xxxxxxxxx> wrote: > It's not safe to disable controller if overlay(s) is enabled (results in > system hang). So we avoid to disable controller in this case. Userspace > should choose proper governor to avoid freq changing when overlay is in > use, otherwise LCD may blink. > > Signed-off-by: Vasily Khoruzhick <anarsoul@xxxxxxxxx> > --- > Âdrivers/video/pxafb.c | Â Â3 ++- > Â1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c > index a3bdcc1..a2e5b51 100644 > --- a/drivers/video/pxafb.c > +++ b/drivers/video/pxafb.c > @@ -1648,7 +1648,8 @@ pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data) > > Â Â Â Âswitch (val) { > Â Â Â Âcase CPUFREQ_PRECHANGE: > - Â Â Â Â Â Â Â set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE); > + Â Â Â Â Â Â Â if (!fbi->overlay[0].usage && !fbi->overlay[1].usage) > + Â Â Â Â Â Â Â Â Â Â Â set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE); > Â Â Â Â Â Â Â Âbreak; > > Â Â Â Âcase CPUFREQ_POSTCHANGE: > -- > 1.7.4.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html