ARM: pxafb: don't disable controller on cpufreq transition if overlay in use

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@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
Vasily Khoruzhick 2011-03-11 11:20:50 +02:00 коммит произвёл Eric Miao
Родитель dcf8eee94f
Коммит 27be9a9e37
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1648,6 +1648,7 @@ pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data)
switch (val) {
case CPUFREQ_PRECHANGE:
if (!fbi->overlay[0].usage && !fbi->overlay[1].usage)
set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE);
break;