aboutsummaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorSimon Glass2020-07-17 08:48:18 -0600
committerBin Meng2020-07-20 09:46:45 +0800
commitdb3a37c711433a79331b1b47feff15f987a2d89b (patch)
treea92206e760c7408d351e954f649c338db54beb42 /arch/x86
parent50e9cac1070bcf700eca18212d510afaa4752b21 (diff)
x86: Set the SMP flag when MP init is complete
Set this flag so we can track when it is safe to use CPUs other than the main one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/cpu/mp_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 787de92fa37..69a23829b9c 100644
--- a/arch/x86/cpu/mp_init.c
+++ b/arch/x86/cpu/mp_init.c
@@ -643,6 +643,7 @@ int mp_init(void)
debug("CPU init failed: err=%d\n", ret);
return ret;
}
+ gd->flags |= GD_FLG_SMP_READY;
return 0;
}