]> Git Repo - linux.git/commitdiff
Merge branch 'for-6.14-cpu_sync-fixup' into for-linus
authorPetr Mladek <[email protected]>
Mon, 20 Jan 2025 12:40:52 +0000 (13:40 +0100)
committerPetr Mladek <[email protected]>
Mon, 20 Jan 2025 12:40:52 +0000 (13:40 +0100)
1  2 
kernel/printk/printk.c

diff --combined kernel/printk/printk.c
index d8d82dd39dee836f8ab53b3e405937da38eee042,f446a06b4da8ca364fddfaec2d70315031016cd3..07668433644b8a746229d170fde6ea416a09422b
@@@ -523,7 -523,7 +523,7 @@@ static struct latched_seq clear_seq = 
  /* record buffer */
  #define LOG_ALIGN __alignof__(unsigned long)
  #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
 -#define LOG_BUF_LEN_MAX (u32)(1 << 31)
 +#define LOG_BUF_LEN_MAX ((u32)1 << 31)
  static char __log_buf[__LOG_BUF_LEN] __aligned(LOG_ALIGN);
  static char *log_buf = __log_buf;
  static u32 log_buf_len = __LOG_BUF_LEN;
@@@ -4922,6 -4922,11 +4922,11 @@@ void console_try_replay_all(void
  static atomic_t printk_cpu_sync_owner = ATOMIC_INIT(-1);
  static atomic_t printk_cpu_sync_nested = ATOMIC_INIT(0);
  
+ bool is_printk_cpu_sync_owner(void)
+ {
+       return (atomic_read(&printk_cpu_sync_owner) == raw_smp_processor_id());
+ }
  /**
   * __printk_cpu_sync_wait() - Busy wait until the printk cpu-reentrant
   *                            spinning lock is not owned by any CPU.
This page took 0.065195 seconds and 4 git commands to generate.