Lines Matching refs:cpu_node
297 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity() argument
307 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
321 cpu_node, raw_capacity[cpu]); in topology_parse_cpu_capacity()
329 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity()
338 cpu_node); in topology_parse_cpu_capacity()
481 struct device_node *cpu_node; in get_cpu_for_node() local
484 cpu_node = of_parse_phandle(node, "cpu", 0); in get_cpu_for_node()
485 if (!cpu_node) in get_cpu_for_node()
488 cpu = of_cpu_node_to_id(cpu_node); in get_cpu_for_node()
490 topology_parse_cpu_capacity(cpu_node, cpu); in get_cpu_for_node()
493 cpu_node, cpumask_pr_args(cpu_possible_mask)); in get_cpu_for_node()
495 of_node_put(cpu_node); in get_cpu_for_node()