Skip to content

Commit

Permalink
Drivers: hv: Change the signature for hv_signal_event()
Browse files Browse the repository at this point in the history
In preparation for implementing a per-connection signaling framework,
change the signature of the function hv_signal_event(). The current
code uses a global handle for signaling the host.

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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent 37f7278 commit 1f42248
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/hv/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,5 @@ int vmbus_set_event(u32 child_relid)
(unsigned long *)vmbus_connection.send_int_page +
(child_relid >> 5));

return hv_signal_event();
return hv_signal_event(hv_context.signal_event_param);
}
7 changes: 3 additions & 4 deletions drivers/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,12 @@ int hv_post_message(union hv_connection_id connection_id,
*
* This involves a hypercall.
*/
u16 hv_signal_event(void)
u16 hv_signal_event(void *con_id)
{
u16 status;

status = do_hypercall(HVCALL_SIGNAL_EVENT,
hv_context.signal_event_param,
NULL) & 0xFFFF;
status = (do_hypercall(HVCALL_SIGNAL_EVENT, con_id, NULL) & 0xFFFF);

return status;
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/hv/hyperv_vmbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ extern int hv_post_message(union hv_connection_id connection_id,
enum hv_message_type message_type,
void *payload, size_t payload_size);

extern u16 hv_signal_event(void);
extern u16 hv_signal_event(void *con_id);

extern void hv_synic_init(void *irqarg);

Expand Down

0 comments on commit 1f42248

Please sign in to comment.