Staging: hv: osd: remove spinlock wrapper functions
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Jul 2009 21:58:10 +0000 (14:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:48 +0000 (12:01 -0700)
Now that there are no users of the wrapper functions for spinlocks,
remove them.

Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/include/osd.h
drivers/staging/hv/osd.c

index 1ec760930fe96e0efbc0fab7617890fb16c4602f..d6568f51029787f00651dfc6a660b2b0bf48ff61 100644 (file)
@@ -137,11 +137,6 @@ extern int WaitEventWait(HANDLE hWait);
 // If >0, hWait got signaled. If ==0, timeout. If < 0, error
 extern int     WaitEventWaitEx(HANDLE hWait, u32 TimeoutInMs);
 
-extern HANDLE SpinlockCreate(void);
-extern void SpinlockClose(HANDLE hSpin);
-extern void SpinlockAcquire(HANDLE hSpin);
-extern void    SpinlockRelease(HANDLE hSpin);
-
 
 #define GetVirtualAddress Physical2LogicalAddr
 void* Physical2LogicalAddr(unsigned long PhysAddr);
index cdd530077cfd6e1428b8c46f8c042d6f5d7e11ce..27408277b13eeb9917ed47e7fe37f659ff85de8d 100644 (file)
@@ -61,11 +61,6 @@ typedef struct _WAITEVENT {
        wait_queue_head_t event;
 } WAITEVENT;
 
-typedef struct _SPINLOCK {
-       spinlock_t              lock;
-       unsigned long   flags;
-} SPINLOCK;
-
 typedef struct _WORKQUEUE {
        struct workqueue_struct *queue;
 } WORKQUEUE;
@@ -323,38 +318,6 @@ int WaitEventWaitEx(HANDLE hWait, u32 TimeoutInMs)
        return ret;
 }
 
-HANDLE SpinlockCreate(void)
-{
-       SPINLOCK* spin = kmalloc(sizeof(SPINLOCK), GFP_KERNEL);
-       if (!spin)
-       {
-               return NULL;
-       }
-       spin_lock_init(&spin->lock);
-
-       return spin;
-}
-
-void SpinlockAcquire(HANDLE hSpin)
-{
-       SPINLOCK* spin = (SPINLOCK* )hSpin;
-
-       spin_lock_irqsave(&spin->lock, spin->flags);
-}
-
-void SpinlockRelease(HANDLE hSpin)
-{
-       SPINLOCK* spin = (SPINLOCK* )hSpin;
-
-       spin_unlock_irqrestore(&spin->lock, spin->flags);
-}
-
-void SpinlockClose(HANDLE hSpin)
-{
-       SPINLOCK* spin = (SPINLOCK* )hSpin;
-       kfree(spin);
-}
-
 void* Physical2LogicalAddr(unsigned long PhysAddr)
 {
        void* logicalAddr = phys_to_virt(PhysAddr);