]> Pileus Git - ~andy/linux/commitdiff
Drivers: hv: Change the signature of vmbus_set_event()
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 1 Dec 2012 14:46:43 +0000 (06:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 19:34:36 +0000 (11:34 -0800)
In preparation for supporting a per-connection signaling mechanism,
change the signature of vmbus_set_event(). This change is also
needed to implement other aspects of the signaling optimization.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/channel.c
drivers/hv/connection.c
drivers/hv/hyperv_vmbus.h

index 727c5f1d6acf1c7ac261f2ab19324b56f0aff56d..70a34daa04c1e1aff6db740580de8a6023623ced 100644 (file)
@@ -55,7 +55,7 @@ static void vmbus_setevent(struct vmbus_channel *channel)
                                        [channel->monitor_grp].pending);
 
        } else {
-               vmbus_set_event(channel->offermsg.child_relid);
+               vmbus_set_event(channel);
        }
 }
 
index 3f8ce7be4c188120b399be0283a7589bd81ff76e..0d8b13290e932b79953377476a3cf940bfae26d4 100644 (file)
@@ -395,8 +395,9 @@ int vmbus_post_msg(void *buffer, size_t buflen)
 /*
  * vmbus_set_event - Send an event notification to the parent
  */
-int vmbus_set_event(u32 child_relid)
+int vmbus_set_event(struct vmbus_channel *channel)
 {
+       u32 child_relid = channel->offermsg.child_relid;
        /* Each u32 represents 32 channels */
        sync_set_bit(child_relid & 31,
                (unsigned long *)vmbus_connection.send_int_page +
index 61d2c4f6fc17fa90a3673438679a200dede97ac0..cd48ac331708a2d0846338dcf327f2ded4bd411a 100644 (file)
@@ -660,7 +660,7 @@ int vmbus_connect(void);
 
 int vmbus_post_msg(void *buffer, size_t buflen);
 
-int vmbus_set_event(u32 child_relid);
+int vmbus_set_event(struct vmbus_channel *channel);
 
 void vmbus_on_event(unsigned long data);