Set this flag so we can track when it is safe to use CPUs other than the
main one.

Signed-off-by: Simon Glass <s...@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wall...@br-automation.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---

(no changes since v3)

Changes in v3:
- Rename flag to GD_FLG_SMP_READY

 arch/x86/cpu/mp_init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c
index 787de92fa3..69a23829b9 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;
 }
-- 
2.28.0.rc0.105.gf9edc3c819-goog

Reply via email to