aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuukka Tikkanen <idlestat@tic0.net>2015-01-28 16:28:47 +0200
committerAmit Kucheria <amit.kucheria@linaro.org>2015-03-10 02:28:37 +0530
commit10aa039b937e40ad08bb0207b5ad5eb05bd354c2 (patch)
tree954147d6ab99bc412e5298e3fac882d7c37c6f6b
parent96c4890f3addebe9ef1bc735871d786d897c2b78 (diff)
Topology: Remove unused structure member
The structure member cpu_topology.physical_num is not used for anything and can be removed. Signed-off-by: Tuukka Tikkanen <idlestat@tic0.net> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--topology.c2
-rw-r--r--topology.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/topology.c b/topology.c
index c1b399c..63d4899 100644
--- a/topology.c
+++ b/topology.c
@@ -102,7 +102,6 @@ int add_topo_info(struct cpu_topology *topo_list, struct topology_info *info)
ptr = check_pos_from_head(&topo_list->physical_head,
s_phy->physical_id);
list_add_tail(&s_phy->list_physical, ptr);
- topo_list->physical_num++;
} else {
s_phy = list_entry(ptr, struct cpu_physical, list_physical);
}
@@ -391,7 +390,6 @@ struct cpu_topology *alloc_cpu_topo_info(void)
if (ret == NULL)
return ptrerror(__func__);
INIT_LIST_HEAD(&ret->physical_head);
- ret->physical_num = 0;
return ret;
}
diff --git a/topology.h b/topology.h
index f0cabbc..5eba04e 100644
--- a/topology.h
+++ b/topology.h
@@ -70,7 +70,6 @@ struct cpu_physical {
struct cpu_topology {
struct list_head physical_head;
- int physical_num;
};
extern struct cpu_topology *alloc_cpu_topo_info(void);