diff options
| author | Palmer Dabbelt <palmer@sifive.com> | 2018-10-02 15:15:01 -0400 |
|---|---|---|
| committer | Palmer Dabbelt <palmer@sifive.com> | 2018-10-22 20:03:36 -0400 |
| commit | 177fae4515889e2407810c5167a5227da8b37cce (patch) | |
| tree | 36a1d57a6afcad93ba5621941f67373a9e123a86 | |
| parent | b2f8cfa7ac34202e5fd9551b6507fcd424634c1b (diff) | |
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>
| -rw-r--r-- | arch/riscv/kernel/smpboot.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index cfb0b02db647..4a232600cedb 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c | |||
| @@ -50,7 +50,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
| 50 | void __init setup_smp(void) | 50 | void __init setup_smp(void) |
| 51 | { | 51 | { |
| 52 | struct device_node *dn = NULL; | 52 | struct device_node *dn = NULL; |
| 53 | int hart, im_okay_therefore_i_am = 0; | 53 | int hart; |
| 54 | bool found_boot_cpu = false; | ||
| 54 | 55 | ||
| 55 | while ((dn = of_find_node_by_type(dn, "cpu"))) { | 56 | while ((dn = of_find_node_by_type(dn, "cpu"))) { |
| 56 | hart = riscv_of_processor_hartid(dn); | 57 | hart = riscv_of_processor_hartid(dn); |
| @@ -58,13 +59,13 @@ void __init setup_smp(void) | |||
| 58 | set_cpu_possible(hart, true); | 59 | set_cpu_possible(hart, true); |
| 59 | set_cpu_present(hart, true); | 60 | set_cpu_present(hart, true); |
| 60 | if (hart == smp_processor_id()) { | 61 | if (hart == smp_processor_id()) { |
| 61 | BUG_ON(im_okay_therefore_i_am); | 62 | BUG_ON(found_boot_cpu); |
| 62 | im_okay_therefore_i_am = 1; | 63 | found_boot_cpu = true; |
| 63 | } | 64 | } |
| 64 | } | 65 | } |
| 65 | } | 66 | } |
| 66 | 67 | ||
| 67 | BUG_ON(!im_okay_therefore_i_am); | 68 | BUG_ON(!found_boot_cpu); |
| 68 | } | 69 | } |
| 69 | 70 | ||
| 70 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) | 71 | int __cpu_up(unsigned int cpu, struct task_struct *tidle) |
