dd69abbd9a
- Fix, SMT state is not honored when new CPUs are added dynamically Resolves: RHEL-62938
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
commit 1dc1ecf7dce7825d352b045c98aa51711b58aaca
|
|
Author: Haren Myneni <haren@linux.ibm.com>
|
|
Date: Fri Jun 21 15:39:42 2024 -0700
|
|
|
|
drmgr: Return from get_node_by_name() if matched DRC index
|
|
|
|
get_node_by_name() should return dr_node if the DRC name or DRC
|
|
index is matched. But the current code returns only if the DRC
|
|
name is matched. This patch fixes this issue and returns dr_node
|
|
if the index is matched.
|
|
|
|
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
|
|
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
|
|
|
diff --git a/src/drmgr/common_pci.c b/src/drmgr/common_pci.c
|
|
index c6dcfdf..2e0e5fb 100644
|
|
--- a/src/drmgr/common_pci.c
|
|
+++ b/src/drmgr/common_pci.c
|
|
@@ -969,7 +969,7 @@ get_node_by_name(const char *drc_name, uint32_t node_type)
|
|
/* See if the drc index was specified */
|
|
drc_index = strtoul(drc_name, NULL, 0);
|
|
if (node->drc_index == drc_index)
|
|
- continue;
|
|
+ break;
|
|
|
|
for (child = node->children; child; child = child->next) {
|
|
if (strcmp(drc_name, child->drc_name) == 0)
|