diff options
author | 2013-09-13 11:32:58 -0700 | |
---|---|---|
committer | 2013-09-26 09:01:17 -0700 | |
commit | 4947c7453b184bc33a0056cf95af61c3cad11ef6 (patch) | |
tree | 3a83a2c0f705b5f202f32b5257fc24b38797695c /drivers/hv/channel.c | |
parent | hv: move "client/server_monitor_latency" bus attributes to dev_groups (diff) | |
download | linux-4947c7453b184bc33a0056cf95af61c3cad11ef6.tar.gz linux-4947c7453b184bc33a0056cf95af61c3cad11ef6.tar.bz2 linux-4947c7453b184bc33a0056cf95af61c3cad11ef6.zip |
hv: move "client/server_monitor_conn_id" bus attributes to dev_groups
This moves the "client_monitor_conn_id" and "server_monitor_conn_id" bus
attributes to the dev_groups structure, removing the need for it to be
in a temporary structure.
Tested-by: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/channel.c')
-rw-r--r-- | drivers/hv/channel.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index ff61464f57ca..75c26da3e011 100644 --- a/drivers/hv/channel.c +++ b/drivers/hv/channel.c @@ -65,20 +65,6 @@ static void vmbus_setevent(struct vmbus_channel *channel) void vmbus_get_debug_info(struct vmbus_channel *channel, struct vmbus_channel_debug_info *debuginfo) { - struct hv_monitor_page *monitorpage; - u8 monitor_group = (u8)channel->offermsg.monitorid / 32; - u8 monitor_offset = (u8)channel->offermsg.monitorid % 32; - - monitorpage = vmbus_connection.monitor_pages[0]; - debuginfo->servermonitor_connectionid = - monitorpage->parameter[monitor_group] - [monitor_offset].connectionid.u.id; - - monitorpage = vmbus_connection.monitor_pages[1]; - debuginfo->clientmonitor_connectionid = - monitorpage->parameter[monitor_group] - [monitor_offset].connectionid.u.id; - hv_ringbuffer_get_debuginfo(&channel->inbound, &debuginfo->inbound); hv_ringbuffer_get_debuginfo(&channel->outbound, &debuginfo->outbound); } |