1 #ifndef CPUINFO_H 2 # define CPUINFO_H 3 4 struct cpuinfo { 5 int nodeid; /* which node is this CPU on */ 6 int online; /* is this CPU online */ 7 8 /* sched domains in each sched level of this CPU */ 9 struct bitmask *sched_domain; 10 }; 11 12 extern struct cpuinfo *cpus; 13 extern int ncpus; 14 extern int cpus_nbits; 15 extern struct bitmask **domains; 16 extern int ndomains; 17 18 extern int online_cpumask(struct bitmask *cpumask); 19 extern int present_cpumask(struct bitmask *cpumask); 20 extern int get_ncpus(void); 21 extern int getcpuinfo(void); 22 extern int partition_domains(void); 23 24 #endif 25