]> Git Repo - linux.git/commitdiff
printk: Mark __printk percpu data ready __ro_after_init
authorThomas Gleixner <[email protected]>
Sat, 24 Sep 2022 00:04:41 +0000 (02:10 +0206)
committerPetr Mladek <[email protected]>
Thu, 29 Sep 2022 13:20:52 +0000 (15:20 +0200)
This variable cannot change post boot.

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
kernel/printk/printk.c

index 770511b89504450cbc5451277a229531e342e399..e4f1e7478b521a7028ac8cd658cc54ae5e917bc0 100644 (file)
@@ -430,7 +430,7 @@ static struct printk_ringbuffer *prb = &printk_rb_static;
  * per_cpu_areas are initialised. This variable is set to true when
  * it's safe to access per-CPU data.
  */
-static bool __printk_percpu_data_ready __read_mostly;
+static bool __printk_percpu_data_ready __ro_after_init;
 
 bool printk_percpu_data_ready(void)
 {
This page took 0.062971 seconds and 4 git commands to generate.