]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] pxafb: avoid the racing condition in pxafb_smart_thread
authorEric Miao <eric.miao@marvell.com>
Mon, 8 Dec 2008 10:51:01 +0000 (18:51 +0800)
committerEric Miao <eric.miao@marvell.com>
Wed, 17 Dec 2008 14:51:04 +0000 (22:51 +0800)
commit07f651c72ac0530033883c113939d9b9c7fa75e5
tree955308697de170af5809b8be4552ea6d05fabeef
parent69bdea7047fbac88beb8b7ba9e428c4f0e53f563
[ARM] pxafb: avoid the racing condition in pxafb_smart_thread

fbi->state change shall really be protected by fbi->ctrlr_lock, where
the change is sheltered. There is a possibility that pxafb_smart_thread
will start update the LCD panel when fbi->state == C_ENABLE, while
all other initialization isn't done.

Signed-off-by: Eric Miao <eric.miao@marvell.com>
drivers/video/pxafb.c