summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2026-09-02 15:47:59 +0800
committerPetr Mladek <pmladek@suse.com>2026-09-17 11:49:47 +0200
commit72d907f23ef092d63caac96ca3af6fcae4506008 (patch)
tree059244fe2b02b9578f304ffcadc9211efd469e97 /tools/lib/python
parent77ae27fd98f3b548797c9f22c10ab5cf1c4ada53 (diff)
downloadlinux-next-72d907f23ef092d63caac96ca3af6fcae4506008.tar.gz
linux-next-72d907f23ef092d63caac96ca3af6fcae4506008.zip
lib/vsprintf: Use acquire/release for ptr_key publication
Replace the smp_wmb() + WRITE_ONCE() and READ_ONCE() + smp_rmb() barrier pair with smp_store_release()/smp_load_acquire() on filled_random_ptr_key. This expresses the publish/subscribe pattern more clearly and allows architectures with native acquire/release instructions (e.g. arm64's STLR/LDAR) to avoid the cost of full one-way barriers (DMB ISHST/ISHLD). No functional change intended. Cc: Petr Mladek <pmladek@suse.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Andrew Morton <akpm@linux-foundation.org> Assisted-by: DeepSeek:DeepSeek-V3 Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Reviewed-by: Petr Mladek <pmladek@suse.com> Link: https://patch.msgid.link/20260902074805.398540-3-ruanjinjie@huawei.com Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions