Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249059
b: refs/heads/master
c: 242b45a
h: refs/heads/master
i:
  249057: e0a0a8f
  249055: 4344304
v: v3
  • Loading branch information
Olaf Hering authored and Greg Kroah-Hartman committed Apr 20, 2011
1 parent d609dcf commit acdf524
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3ee87081ccc3a5c4394d97ae1a13944b5072e81
refs/heads/master: 242b45aa8d93f7fc46ed551db9eb06cc33da7167
35 changes: 14 additions & 21 deletions trunk/drivers/staging/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,30 +287,23 @@ void vmbus_on_event(unsigned long data)
u32 *recv_int_page = vmbus_connection.recv_int_page;

/* Check events */
if (recv_int_page) {
for (dword = 0; dword < maxdword; dword++) {
if (recv_int_page[dword]) {
for (bit = 0; bit < 32; bit++) {
if (sync_test_and_clear_bit(bit,
(unsigned long *)
&recv_int_page[dword])) {
relid = (dword << 5) + bit;

if (relid == 0) {
/* special case - vmbus channel protocol msg */
continue;
} else {
/* QueueWorkItem(VmbusProcessEvent, (void*)relid); */
/* ret = WorkQueueQueueWorkItem(gVmbusConnection.workQueue, VmbusProcessChannelEvent, (void*)relid); */
process_chn_event((void *)
(unsigned long)relid);
}
}
if (!recv_int_page)
return;
for (dword = 0; dword < maxdword; dword++) {
if (!recv_int_page[dword])
continue;
for (bit = 0; bit < 32; bit++) {
if (sync_test_and_clear_bit(bit, (unsigned long *)&recv_int_page[dword])) {
relid = (dword << 5) + bit;

if (relid == 0) {
/* special case - vmbus channel protocol msg */
continue;
}
process_chn_event((void *) (unsigned long)relid);
}
}
}
}
return;
}

/*
Expand Down

0 comments on commit acdf524

Please sign in to comment.