1 #ifndef __CPUPOWER_CPUPOWER_H__
2 #define __CPUPOWER_CPUPOWER_H__
4 struct cpupower_topology
{
5 /* Amount of CPU cores, packages and threads per core in the system */
8 unsigned int threads
; /* per core */
10 /* Array gets mallocated with cores entries, holding per core info */
11 struct cpuid_core_info
*core_info
;
14 struct cpuid_core_info
{
20 unsigned int is_online
:1;
27 int get_cpu_topology(struct cpupower_topology
*cpu_top
);
28 void cpu_topology_release(struct cpupower_topology cpu_top
);
29 int cpupower_is_cpu_online(unsigned int cpu
);