We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fd6e8 commit 2bb1063Copy full SHA for 2bb1063
arch/riscv/kernel/smpboot.c
@@ -57,23 +57,19 @@ void __init setup_smp(void)
57
58
while ((dn = of_find_node_by_type(dn, "cpu"))) {
59
hart = riscv_of_processor_hartid(dn);
60
- if (hart < 0) {
61
- of_node_put(dn);
+ if (hart < 0)
62
continue;
63
- }
64
65
if (hart == cpuid_to_hartid_map(0)) {
66
BUG_ON(found_boot_cpu);
67
found_boot_cpu = 1;
68
69
70
}
71
72
cpuid_to_hartid_map(cpuid) = hart;
73
set_cpu_possible(cpuid, true);
74
set_cpu_present(cpuid, true);
75
cpuid++;
76
77
78
79
BUG_ON(!found_boot_cpu);
0 commit comments