diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2009-07-29 21:00:11 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:53 (GMT) |
commit | 7c369f405bc918f3245c7ee0b0ad6c6b6c750166 (patch) | |
tree | fc5777fe20dcecbf56743c6203afbbb2de138121 /drivers/staging/hv/Connection.c | |
parent | 420beac4fcc9efd6f7d838ef7cc5693c58c98015 (diff) | |
download | linux-fsl-qoriq-7c369f405bc918f3245c7ee0b0ad6c6b6c750166.tar.xz |
Staging: hv: remove wrapper functions for bit operations
There were several Bit* functions that did nothing but call the kernel
functions with the parameters reversed. Remove these and call the
functions directly.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/Connection.c')
-rw-r--r-- | drivers/staging/hv/Connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/hv/Connection.c b/drivers/staging/hv/Connection.c index 8d76bd4..b7df7e7 100644 --- a/drivers/staging/hv/Connection.c +++ b/drivers/staging/hv/Connection.c @@ -358,7 +358,7 @@ VmbusOnEvents( { for (bit = 0; bit < 32; bit++) { - if (BitTestAndClear(&recvInterruptPage[dword], bit)) + if (test_and_clear_bit(bit, (unsigned long *) &recvInterruptPage[dword])) { relid = (dword << 5) + bit; @@ -432,7 +432,9 @@ VmbusSetEvent(u32 childRelId) DPRINT_ENTER(VMBUS); /* Each u32 represents 32 channels */ - BitSet((u32*)gVmbusConnection.SendInterruptPage + (childRelId >> 5), childRelId & 31); + set_bit(childRelId & 31, + (unsigned long *) gVmbusConnection.SendInterruptPage + (childRelId >> 5)); + ret = HvSignalEvent(); DPRINT_EXIT(VMBUS); |