Commit 3bcfa888 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: hv: osd: remove spinlock wrapper functions

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0f5e44ca
...@@ -137,11 +137,6 @@ extern int WaitEventWait(HANDLE hWait); ...@@ -137,11 +137,6 @@ extern int WaitEventWait(HANDLE hWait);
// If >0, hWait got signaled. If ==0, timeout. If < 0, error // If >0, hWait got signaled. If ==0, timeout. If < 0, error
extern int WaitEventWaitEx(HANDLE hWait, u32 TimeoutInMs); 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 #define GetVirtualAddress Physical2LogicalAddr
void* Physical2LogicalAddr(unsigned long PhysAddr); void* Physical2LogicalAddr(unsigned long PhysAddr);
......
...@@ -61,11 +61,6 @@ typedef struct _WAITEVENT { ...@@ -61,11 +61,6 @@ typedef struct _WAITEVENT {
wait_queue_head_t event; wait_queue_head_t event;
} WAITEVENT; } WAITEVENT;
typedef struct _SPINLOCK {
spinlock_t lock;
unsigned long flags;
} SPINLOCK;
typedef struct _WORKQUEUE { typedef struct _WORKQUEUE {
struct workqueue_struct *queue; struct workqueue_struct *queue;
} WORKQUEUE; } WORKQUEUE;
...@@ -323,38 +318,6 @@ int WaitEventWaitEx(HANDLE hWait, u32 TimeoutInMs) ...@@ -323,38 +318,6 @@ int WaitEventWaitEx(HANDLE hWait, u32 TimeoutInMs)
return ret; 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* Physical2LogicalAddr(unsigned long PhysAddr)
{ {
void* logicalAddr = phys_to_virt(PhysAddr); void* logicalAddr = phys_to_virt(PhysAddr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment