From f3ef2188923d357c94a2421024c8288e428feccb Mon Sep 17 00:00:00 2001 From: Andreas Pokorny Date: Wed, 3 Jun 2009 21:04:47 +0200 Subject: Glamo DRM: Adding a Semaphore and Spinlock This is the first step towards the irq based update of the write pointer. With this revision the previous wait, and direct update is deactivated. Signed-off-by: Andreas Pokorny --- drivers/mfd/glamo/glamo-drm-private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'drivers/mfd/glamo/glamo-drm-private.h') diff --git a/drivers/mfd/glamo/glamo-drm-private.h b/drivers/mfd/glamo/glamo-drm-private.h index 59fbc2488c5..9442532dafe 100644 --- a/drivers/mfd/glamo/glamo-drm-private.h +++ b/drivers/mfd/glamo/glamo-drm-private.h @@ -29,6 +29,8 @@ #include #include +#include +#include #include "glamo-core.h" @@ -56,6 +58,12 @@ struct glamodrm_handle { /* Memory management */ struct drm_mm *mmgr; + + /* semaphore against concurrent ioctl */ + struct semaphore add_to_ring; + + spinlock_t new_ring_write_lock; + size_t new_ring_write; }; /* Private data. This is where we keep our memory management bits */ -- cgit v1.2.3