Commit 4c59b571 authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by Alex Deucher

drm/amdkfd: Remove field io_link_count from struct kfd_topology_device

The field is redundant and does not serve any functional role
Signed-off-by: default avatarRamesh Errabolu <Ramesh.Errabolu@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7aade9ce
...@@ -1040,7 +1040,6 @@ static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink, ...@@ -1040,7 +1040,6 @@ static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink,
props->rec_transfer_size = props->rec_transfer_size =
iolink->recommended_transfer_size; iolink->recommended_transfer_size;
dev->io_link_count++;
dev->node_props.io_links_count++; dev->node_props.io_links_count++;
list_add_tail(&props->list, &dev->io_link_props); list_add_tail(&props->list, &dev->io_link_props);
break; break;
...@@ -1067,7 +1066,6 @@ static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink, ...@@ -1067,7 +1066,6 @@ static int kfd_parse_subtype_iolink(struct crat_subtype_iolink *iolink,
props2->node_from = id_to; props2->node_from = id_to;
props2->node_to = id_from; props2->node_to = id_from;
props2->kobj = NULL; props2->kobj = NULL;
to_dev->io_link_count++;
to_dev->node_props.io_links_count++; to_dev->node_props.io_links_count++;
list_add_tail(&props2->list, &to_dev->io_link_props); list_add_tail(&props2->list, &to_dev->io_link_props);
} }
......
...@@ -1819,7 +1819,6 @@ static void kfd_topology_update_io_links(int proximity_domain) ...@@ -1819,7 +1819,6 @@ static void kfd_topology_update_io_links(int proximity_domain)
*/ */
if (iolink->node_to == proximity_domain) { if (iolink->node_to == proximity_domain) {
list_del(&iolink->list); list_del(&iolink->list);
dev->io_link_count--;
dev->node_props.io_links_count--; dev->node_props.io_links_count--;
} else { } else {
if (iolink->node_from > proximity_domain) if (iolink->node_from > proximity_domain)
......
...@@ -130,7 +130,6 @@ struct kfd_topology_device { ...@@ -130,7 +130,6 @@ struct kfd_topology_device {
struct list_head mem_props; struct list_head mem_props;
uint32_t cache_count; uint32_t cache_count;
struct list_head cache_props; struct list_head cache_props;
uint32_t io_link_count;
struct list_head io_link_props; struct list_head io_link_props;
struct list_head p2p_link_props; struct list_head p2p_link_props;
struct list_head perf_props; struct list_head perf_props;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment