kernel: Make get_cpu_topology() return a pointer to const

The client code is not supposed to change the topology info.
It would be also nice if cpu_topology_node::children was an array of
pointers to const but that would require several const_casts in the
topology tree generation code so it's probably not worth it.
This commit is contained in:
Pawel Dziepak
2013-12-17 22:08:18 +01:00
parent 735f67481f
commit 4fcbac58de
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ cpu_ent *get_cpu_struct(void);
extern inline cpu_ent *get_cpu_struct(void) { return &gCPU[smp_get_current_cpu()]; }
status_t cpu_build_topology_tree(void);
cpu_topology_node* get_cpu_topology(void);
const cpu_topology_node* get_cpu_topology(void);
status_t increase_cpu_performance(int delta, bool allowBoost);
status_t decrease_cpu_performance(int delta);