Skip to content

Commit

Permalink
cpupower: Fix precedence issue
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Thomas Renninger authored and Rafael J. Wysocki committed Dec 3, 2015
1 parent 31ade3b commit 7b0e1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/power/cpupower/utils/helpers/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int get_cpu_topology(struct cpupower_topology *cpu_top)
cpu_top->pkgs++;
}
}
if (!cpu_top->core_info[0].pkg == -1)
if (!(cpu_top->core_info[0].pkg == -1))
cpu_top->pkgs++;

/* Intel's cores count is not consecutively numbered, there may
Expand Down

0 comments on commit 7b0e1bf

Please sign in to comment.