diff mbox series

[11/22] global_data: Add a generic global_data flag for SMP state

Message ID 20200521202309.11.Ia6086100e8567ae147f09a6a428ee5f9a7aa7dbe@changeid
State Superseded
Delegated to: Bin Meng
Headers show
Series x86: Enhance MTRR functionality to support multiple CPUs | expand

Commit Message

Simon Glass May 22, 2020, 2:23 a.m. UTC
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>
---

 include/asm-generic/global_data.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Wolfgang Wallner June 10, 2020, 1:27 p.m. UTC | #1
Hi Simon,

-----"Simon Glass" <sjg@chromium.org> schrieb: -----
> Betreff: [PATCH 11/22] global_data: Add a generic global_data flag for SMP state
> 
> 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>
> ---
> 
>  include/asm-generic/global_data.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
> index 8c78792cc98..345f365d794 100644
> --- a/include/asm-generic/global_data.h
> +++ b/include/asm-generic/global_data.h
> @@ -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_INIT		0x40000	/* SMP init is complete		   */
>  
>  #endif /* __ASM_GENERIC_GBL_DATA_H */
> -- 
> 2.27.0.rc0.183.gde8f92d652-goog

Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
diff mbox series

Patch

diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 8c78792cc98..345f365d794 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -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_INIT		0x40000	/* SMP init is complete		   */
 
 #endif /* __ASM_GENERIC_GBL_DATA_H */