Browse Source

cpupower: Fix precedence issue

Signed-off-by: Thomas Renninger <trenn@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Thomas Renninger 9 years ago
parent
commit
7b0e1bf171
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/power/cpupower/utils/helpers/topology.c

+ 1 - 1
tools/power/cpupower/utils/helpers/topology.c

@@ -106,7 +106,7 @@ int get_cpu_topology(struct cpupower_topology *cpu_top)
 			cpu_top->pkgs++;
 			cpu_top->pkgs++;
 		}
 		}
 	}
 	}
-	if (!cpu_top->core_info[0].pkg == -1)
+	if (!(cpu_top->core_info[0].pkg == -1))
 		cpu_top->pkgs++;
 		cpu_top->pkgs++;
 
 
 	/* Intel's cores count is not consecutively numbered, there may
 	/* Intel's cores count is not consecutively numbered, there may