Skip to content

Commit 177fae4

Browse files
RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu
The old name was a bit odd. Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent b2f8cfa commit 177fae4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

arch/riscv/kernel/smpboot.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,22 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
5050
void __init setup_smp(void)
5151
{
5252
struct device_node *dn = NULL;
53-
int hart, im_okay_therefore_i_am = 0;
53+
int hart;
54+
bool found_boot_cpu = false;
5455

5556
while ((dn = of_find_node_by_type(dn, "cpu"))) {
5657
hart = riscv_of_processor_hartid(dn);
5758
if (hart >= 0) {
5859
set_cpu_possible(hart, true);
5960
set_cpu_present(hart, true);
6061
if (hart == smp_processor_id()) {
61-
BUG_ON(im_okay_therefore_i_am);
62-
im_okay_therefore_i_am = 1;
62+
BUG_ON(found_boot_cpu);
63+
found_boot_cpu = true;
6364
}
6465
}
6566
}
6667

67-
BUG_ON(!im_okay_therefore_i_am);
68+
BUG_ON(!found_boot_cpu);
6869
}
6970

7071
int __cpu_up(unsigned int cpu, struct task_struct *tidle)

0 commit comments

Comments
 (0)