blob: d4fcb0efb896c3e4a40cb527c4da531bc58b3831 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Juri Lelli615ffd62017-05-31 17:59:30 +01002/*
3 * include/linux/arch_topology.h - arch specific cpu topology information
4 */
5#ifndef _LINUX_ARCH_TOPOLOGY_H_
6#define _LINUX_ARCH_TOPOLOGY_H_
7
Viresh Kumar805df292017-06-23 14:55:32 +05308#include <linux/types.h>
9
Juri Lelli4ca4f262017-05-31 17:59:31 +010010void topology_normalize_cpu_scale(void);
Juri Lelli615ffd62017-05-31 17:59:30 +010011
12struct device_node;
Viresh Kumar805df292017-06-23 14:55:32 +053013bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
Juri Lelli615ffd62017-05-31 17:59:30 +010014
15struct sched_domain;
Juri Lelli4ca4f262017-05-31 17:59:31 +010016unsigned long topology_get_cpu_scale(struct sched_domain *sd, int cpu);
Juri Lelli615ffd62017-05-31 17:59:30 +010017
Juri Lelli4ca4f262017-05-31 17:59:31 +010018void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity);
Juri Lelli615ffd62017-05-31 17:59:30 +010019
20#endif /* _LINUX_ARCH_TOPOLOGY_H_ */