summaryrefslogtreecommitdiff
path: root/arch/arc/lib/bootm.c
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2017-11-17 15:53:20 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2017-11-24 19:38:07 +0300
commitd764a20f2bcab2e76bce0751ed125b0c32f9d82f (patch)
tree86f68abeefee7fe06bd6cd223d497dbe1533e0bd /arch/arc/lib/bootm.c
parent3194c3cddf7bbb7d2d74097e54f587953d0bb35f (diff)
arc: bootm: Move slave cores kick-starting under !fake
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>
Diffstat (limited to 'arch/arc/lib/bootm.c')
-rw-r--r--arch/arc/lib/bootm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arc/lib/bootm.c b/arch/arc/lib/bootm.c
index a498ce5b29..9eef7070cf 100644
--- a/arch/arc/lib/bootm.c
+++ b/arch/arc/lib/bootm.c
@@ -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)