2017-06-01 00:59:30 +08:00
|
|
|
/*
|
|
|
|
* include/linux/arch_topology.h - arch specific cpu topology information
|
|
|
|
*/
|
|
|
|
#ifndef _LINUX_ARCH_TOPOLOGY_H_
|
|
|
|
#define _LINUX_ARCH_TOPOLOGY_H_
|
|
|
|
|
2017-06-23 17:25:32 +08:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
2017-06-01 00:59:31 +08:00
|
|
|
void topology_normalize_cpu_scale(void);
|
2017-06-01 00:59:30 +08:00
|
|
|
|
|
|
|
struct device_node;
|
2017-06-23 17:25:32 +08:00
|
|
|
bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
|
2017-06-01 00:59:30 +08:00
|
|
|
|
|
|
|
struct sched_domain;
|
2017-06-01 00:59:31 +08:00
|
|
|
unsigned long topology_get_cpu_scale(struct sched_domain *sd, int cpu);
|
2017-06-01 00:59:30 +08:00
|
|
|
|
2017-06-01 00:59:31 +08:00
|
|
|
void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
|
2017-06-01 00:59:30 +08:00
|
|
|
|
|
|
|
#endif /* _LINUX_ARCH_TOPOLOGY_H_ */
|