]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data: Add a generic global_data flag for SMP state
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:17 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:45 +0000 (09:46 +0800)
Allow keeping track of whether all CPUs have been enabled yet. This allows
us to know whether other CPUs need to be considered when updating
CPU-specific settings such as MTRRs on x86.

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>
include/asm-generic/global_data.h

index 8c78792cc98bf4d27f5668981857cf8d68fca3e4..d4a4e2215dc613f23092ebbdb013c0a72b1986ff 100644 (file)
@@ -167,5 +167,6 @@ typedef struct global_data {
 #define GD_FLG_LOG_READY       0x08000 /* Log system is ready for use     */
 #define GD_FLG_WDT_READY       0x10000 /* Watchdog is ready for use       */
 #define GD_FLG_SKIP_LL_INIT    0x20000 /* Don't perform low-level init    */
+#define GD_FLG_SMP_READY       0x40000 /* SMP init is complete            */
 
 #endif /* __ASM_GENERIC_GBL_DATA_H */