[COMMON] g2d: add priority setting
authorhyesoo.yu <hyesoo.yu@samsung.com>
Mon, 26 Jun 2017 09:35:26 +0000 (18:35 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:27:26 +0000 (14:27 +0900)
commit3d5f1380e950a9684c462f1ce553221249358747
tree23d7d497964e291bbc57da6550c8eecf34a1cb33
parent5c232a6d64c86ebffa71eb42851f17dd9ef49c68
[COMMON] g2d: add priority setting

All contexts have priority. The requested task inherits
the priority of the context. Updating the priority of the context
always succeeds, but EBUSY could be returned if other tasks is running
or queued with a priority lower than its own.

If the priority of the context is lower than the priority of
the other context, the driver doesn't accept lower context's request,
It is called S/W preemption.

Change-Id: I82650f516ac019eb77f853a948b7f11cfe0578ae
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/gpu/exynos/g2d/g2d.h
drivers/gpu/exynos/g2d/g2d_drv.c
drivers/gpu/exynos/g2d/g2d_task.c
drivers/gpu/exynos/g2d/g2d_task.h
drivers/gpu/exynos/g2d/g2d_uapi.h