diff --git a/src/cpu_topo.c b/src/cpu_topo.c index f853fe693..2a2966cd4 100644 --- a/src/cpu_topo.c +++ b/src/cpu_topo.c @@ -1322,7 +1322,7 @@ static int cpu_policy_group_by_cluster(int policy, int tmin, int tmax, int gmin, if (!ha_cpuset_isset(&visited_tsid, ha_cpu_topo[cpu].ts_id)) { cpu_count++; ha_cpuset_set(&visited_tsid, ha_cpu_topo[cpu].ts_id); - } else if (!cpu_policy_conf.flags & CPU_POLICY_ONE_THREAD_PER_CORE) + } else if (!(cpu_policy_conf.flags & CPU_POLICY_ONE_THREAD_PER_CORE)) cpu_count++; } @@ -1530,7 +1530,7 @@ static int cpu_policy_group_by_ccx(int policy, int tmin, int tmax, int gmin, int if (!ha_cpuset_isset(&visited_tsid, ha_cpu_topo[cpu].ts_id)) { cpu_count++; ha_cpuset_set(&visited_tsid, ha_cpu_topo[cpu].ts_id); - } else if (!cpu_policy_conf.flags & CPU_POLICY_ONE_THREAD_PER_CORE) + } else if (!(cpu_policy_conf.flags & CPU_POLICY_ONE_THREAD_PER_CORE)) cpu_count++; }