diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2017-02-05 17:20:31 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-10 15:43:30 +0100 |
commit | 5c1bec61fdfcd056df909a712e2a86bbaeb0f942 (patch) | |
tree | 625f0c6561886c50334e81042e0d267390e485fc /drivers/hv/vmbus_drv.c | |
parent | bb6a4db92f8345a210b369b791e6920253b10437 (diff) | |
download | blackbird-obmc-linux-5c1bec61fdfcd056df909a712e2a86bbaeb0f942.tar.gz blackbird-obmc-linux-5c1bec61fdfcd056df909a712e2a86bbaeb0f942.zip |
vmbus: use kernel bitops for traversing interrupt mask
Use standard kernel operations for find first set bit to traverse
the channel bit array. This has added benefit of speeding up
lookup on 64 bit and because it uses find first set instruction.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r-- | drivers/hv/vmbus_drv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index f8ebe13cf251..c1b27026f744 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -908,10 +908,8 @@ static void vmbus_isr(void) (vmbus_proto_version == VERSION_WIN7)) { /* Since we are a child, we only need to check bit 0 */ - if (sync_test_and_clear_bit(0, - (unsigned long *) &event->flags32[0])) { + if (sync_test_and_clear_bit(0, event->flags)) handled = true; - } } else { /* * Our host is win8 or above. The signaling mechanism |