]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
riscv: use for_each_of_cpu_node iterator
authorJohan Hovold <johan@kernel.org>
Fri, 18 Jan 2019 14:03:08 +0000 (15:03 +0100)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 11 Feb 2019 23:35:52 +0000 (15:35 -0800)
commitdd81c8ab819d360c92703564d0a8d0b9d4688267
tree4d5eaae0898169bcf6ad4bf577988b810f3683b1
parente3d794d555cda31d48c89bdbc96ce862857be93f
riscv: use for_each_of_cpu_node iterator

Use the new for_each_of_cpu_node() helper to iterate over cpu nodes
instead of open coding. Note that this will allow matching also on the
node name instead of the (for FDT) deprecated device_type property.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/cpufeature.c
arch/riscv/kernel/smpboot.c