Commit 177fae45 authored by Palmer Dabbelt's avatar Palmer Dabbelt

RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu

The old name was a bit odd.
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent b2f8cfa7
...@@ -50,7 +50,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) ...@@ -50,7 +50,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
void __init setup_smp(void) void __init setup_smp(void)
{ {
struct device_node *dn = NULL; struct device_node *dn = NULL;
int hart, im_okay_therefore_i_am = 0; int hart;
bool found_boot_cpu = false;
while ((dn = of_find_node_by_type(dn, "cpu"))) { while ((dn = of_find_node_by_type(dn, "cpu"))) {
hart = riscv_of_processor_hartid(dn); hart = riscv_of_processor_hartid(dn);
...@@ -58,13 +59,13 @@ void __init setup_smp(void) ...@@ -58,13 +59,13 @@ void __init setup_smp(void)
set_cpu_possible(hart, true); set_cpu_possible(hart, true);
set_cpu_present(hart, true); set_cpu_present(hart, true);
if (hart == smp_processor_id()) { if (hart == smp_processor_id()) {
BUG_ON(im_okay_therefore_i_am); BUG_ON(found_boot_cpu);
im_okay_therefore_i_am = 1; found_boot_cpu = true;
} }
} }
} }
BUG_ON(!im_okay_therefore_i_am); BUG_ON(!found_boot_cpu);
} }
int __cpu_up(unsigned int cpu, struct task_struct *tidle) int __cpu_up(unsigned int cpu, struct task_struct *tidle)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment