diff options
| author | Thomas Renninger <trenn@suse.com> | 2015-12-01 11:14:13 -0500 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-02 20:30:29 -0500 |
| commit | 7b0e1bf171effb71fa946e26d28895219de179cc (patch) | |
| tree | 057349a4973bde69007b5bcbdc88aaa88dfa8878 /tools/power/cpupower/utils/helpers | |
| parent | 31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8 (diff) | |
cpupower: Fix precedence issue
Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power/cpupower/utils/helpers')
| -rw-r--r-- | tools/power/cpupower/utils/helpers/topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/helpers/topology.c b/tools/power/cpupower/utils/helpers/topology.c index 9cbb7fd75171..5f9c908f4557 100644 --- a/tools/power/cpupower/utils/helpers/topology.c +++ b/tools/power/cpupower/utils/helpers/topology.c | |||
| @@ -106,7 +106,7 @@ int get_cpu_topology(struct cpupower_topology *cpu_top) | |||
| 106 | cpu_top->pkgs++; | 106 | cpu_top->pkgs++; |
| 107 | } | 107 | } |
| 108 | } | 108 | } |
| 109 | if (!cpu_top->core_info[0].pkg == -1) | 109 | if (!(cpu_top->core_info[0].pkg == -1)) |
| 110 | cpu_top->pkgs++; | 110 | cpu_top->pkgs++; |
| 111 | 111 | ||
| 112 | /* Intel's cores count is not consecutively numbered, there may | 112 | /* Intel's cores count is not consecutively numbered, there may |
