diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-16 18:50:41 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:48 (GMT) |
commit | b4362c9c1fe8bec487e275f92fdf57c585ac236a (patch) | |
tree | 33ab67caca4adaa5ab6b11e8ccc4b66bac9c2d4c /drivers/staging/hv/StorVsc.c | |
parent | 3bcfa88868fd9338606d66ee8ae18aa45fa36566 (diff) | |
download | linux-fsl-qoriq-b4362c9c1fe8bec487e275f92fdf57c585ac236a.tar.xz |
Staging: hv: osd: remove Sleep wrapper
Use the "real" udelay call instead of a wrapper function.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/StorVsc.c')
-rw-r--r-- | drivers/staging/hv/StorVsc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/hv/StorVsc.c b/drivers/staging/hv/StorVsc.c index 2cf4963..e15f570 100644 --- a/drivers/staging/hv/StorVsc.c +++ b/drivers/staging/hv/StorVsc.c @@ -26,6 +26,7 @@ #include <linux/kernel.h> #include <linux/string.h> #include <linux/mm.h> +#include <linux/delay.h> #include "include/logging.h" #include "include/StorVscApi.h" @@ -225,7 +226,7 @@ static inline STORVSC_DEVICE* ReleaseStorDevice(DEVICE_OBJECT *Device) // Busy wait until the ref drop to 2, then set it to 1 while (InterlockedCompareExchange(&storDevice->RefCount, 1, 2) != 2) { - Sleep(100); + udelay(100); } return storDevice; @@ -242,7 +243,7 @@ static inline STORVSC_DEVICE* FinalReleaseStorDevice(DEVICE_OBJECT *Device) // Busy wait until the ref drop to 1, then set it to 0 while (InterlockedCompareExchange(&storDevice->RefCount, 0, 1) != 1) { - Sleep(100); + udelay(100); } Device->Extension = NULL; @@ -582,7 +583,7 @@ StorVscOnDeviceRemove( { DPRINT_INFO(STORVSC, "waiting for %d requests to complete...", storDevice->NumOutstandingRequests); - Sleep(100); + udelay(100); } DPRINT_INFO(STORVSC, "removing storage device (%p)...", Device->Extension); |