aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-08-31 10:21:23 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2016-09-08 12:46:43 +0200
commit72109798f19d51cf5640d9eebde3dd79fa1afe51 (patch)
treec2125d4c8c26110ef7035077fa801f0738eb076f
parentf64cdce36e851bdb38b2a9d98f833968aba570bc (diff)
downloadidlestat-72109798f19d51cf5640d9eebde3dd79fa1afe51.tar.gz
topology: remove check for same cpuid cannot exist in 2 different cores
This breaks on recent kernels because the cpu enumation from /sys may not be in numerical order. Remove it for now. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--topology.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/topology.c b/topology.c
index e293a59..1e1e774 100644
--- a/topology.c
+++ b/topology.c
@@ -149,9 +149,6 @@ int add_topo_info(struct cpu_topology *topo_list, struct topology_info *info)
if (s_core->cpu_num > 1)
s_core->is_ht = true;
- /* Assumption: Same cpuid cannot exist in 2 different cores */
- assert(!check_exist_from_head(&s_phy->cpu_enum_head, info->cpu_id));
-
/* Add to the list (really a set) of all contained cpus in s_phy */
list_add_tail(&s_cpu->list_phy_enum, &s_phy->cpu_enum_head);