Lines Matching defs:cpu
15 #include <linux/cpu.h>
29 #include <asm/cpu.h>
34 * cpu capacity scale management
38 * cpu capacity table
39 * This per cpu data structure describes the relative capacity of each core.
42 * can take this difference into account during load balance. A per cpu
72 #define cpu_capacity(cpu) __cpu_capacity[cpu]
92 int cpu = 0;
97 for_each_possible_cpu(cpu) {
101 /* too early to use cpu->of_node */
102 cn = of_get_cpu_node(cpu, NULL);
104 pr_err("missing device node for CPU %d\n", cpu);
108 if (topology_parse_cpu_capacity(cn, cpu)) {
138 cpu_capacity(cpu) = capacity;
164 static void update_cpu_capacity(unsigned int cpu)
166 if (!cpu_capacity(cpu) || cap_from_dt)
169 topology_set_cpu_scale(cpu, cpu_capacity(cpu) / middle_capacity);
172 cpu, topology_get_cpu_scale(cpu));
181 * store_cpu_topology is called at boot when only one cpu is running
195 /* create cpu topology mapping */
226 pr_info("CPU%u: thread %d, cpu %d, socket %d, mpidr %x\n",
236 * init_cpu_topology is called at boot when only one cpu is running