]> git.sur5r.net Git - u-boot/commitdiff
arc: bootm: Move slave cores kick-starting under !fake
authorAlexey Brodkin <abrodkin@synopsys.com>
Fri, 17 Nov 2017 12:53:20 +0000 (15:53 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 24 Nov 2017 16:38:07 +0000 (19:38 +0300)
Currently slave cores will be kick-started even if we want
to dry run bootm which is not what we really want.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Eugeniy Paltsev <paltsev@synopsys.com>
arch/arc/lib/bootm.c

index a498ce5b297c69724f9c59bf2b486f1d0414da23..9eef7070cf436f7f2803dc0618cc436c00ef1904 100644 (file)
@@ -88,11 +88,11 @@ static void boot_jump_linux(bootm_headers_t *images, int flag)
                r2 = (unsigned int)env_get("bootargs");
        }
 
-       smp_set_core_boot_addr((unsigned long)kernel_entry, -1);
-       smp_kick_all_cpus();
-
-       if (!fake)
+       if (!fake) {
+               smp_set_core_boot_addr((unsigned long)kernel_entry, -1);
+               smp_kick_all_cpus();
                kernel_entry(r0, 0, r2);
+       }
 }
 
 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)