]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: Set the SMP flag when MP init is complete
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:18 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:45 +0000 (09:46 +0800)
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>
arch/x86/cpu/mp_init.c

index 787de92fa37ecc2f7ffedb6f740b30fc22281ac0..69a23829b9cefe38259b7021fe16c78be7bcd242 100644 (file)
@@ -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;
 }