]> Pileus Git - ~andy/linux/commit
OMAPDSS: APPLY: add mutex
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Nov 2011 12:28:48 +0000 (14:28 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:41 +0000 (08:54 +0200)
commit5558db3fdd52e3928d5eaabe363e1576dc5fe473
tree0327825410275bc79083da5fc75920464f4289c8
parent5738b633136a41923b4ba75e6b1a160d08539c99
OMAPDSS: APPLY: add mutex

The functions in apply.c, called mostly via function pointers in overlay
and overlay_manager structs, will be divided into two groups. The first
group will not sleep and can be called from interrupts, and the second
group may sleep.

The idea is that the non-sleeping functions may only change certain
settings in overlays and managers, and those settings may only affect
the particular overlay/manager. For example, set the base address of the
overlay.

The blocking functions, however, will handle more complex configuration
changes. For example, when an overlay is enabled and fifo-merge feature
is used, we need to do the enable in multiple steps, waiting in between,
and the change affects multiple overlays and managers.

This patch adds the mutex which is used in the blocking functions to
have exclusive access to overlays and overlay managers.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c