Skip to content

Commit c27acef

Browse files
author
Dong Jun Woun
committed
counter+=count
1 parent a17c734 commit c27acef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/amd_smi/linux-amd-smi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ static int _amd_smi_init_private(void) {
106106
_amd_smi_vector.cmp_info.num_native_events = count;
107107

108108
uint32_t counter_slots = amds_get_counter_slot_capacity();
109-
110-
_amd_smi_vector.cmp_info.num_cntrs = (int)counter_slots;
109+
_amd_smi_vector.cmp_info.num_cntrs = count + (int)counter_slots;
111110
_amd_smi_vector.cmp_info.num_mpx_cntrs = count;
112111

113112
fn_exit:

0 commit comments

Comments
 (0)