Skip to content

Commit

Permalink
Merge pull request #26 from ColinIanKing/main
Browse files Browse the repository at this point in the history
lpmd_cpu: ensure online is initialized to zero
  • Loading branch information
zhang-rui authored Jun 5, 2024
2 parents 91567df + 5bd9399 commit 034fdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpmd_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static int parse_cpu_topology(void)

reset_cpus (CPUMASK_ONLINE);
for (i = 0; i < topo_max_cpus; i++) {
unsigned int online;
unsigned int online = 0;

snprintf (path, sizeof(path), "/sys/devices/system/cpu/cpu%d/online", i);
filep = fopen (path, "r");
Expand Down

0 comments on commit 034fdd1

Please sign in to comment.