Thread (22 messages) flat view 22 messages, 5 authors, 2026-06-25

Re: [PATCH v2 1/4] sys_info: add helper for callers that handle all_bt

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2026-06-23 20:12:49
Also in: lkml, stable

On Tue, Jun 23, 2026 at 03:34:58PM +0000, Bradley Morgan wrote:
Some callers handle SYS_INFO_ALL_BT themselves before calling sys_info().
Add a helper that strips that bit without turning an all_bt only mask into
a kernel_sys_info fallback.
You also want a getter with check

bool sysinfo_is_all_bt_enabled(...,  *si_mask)

where *si_mask is the result of READ_ONCE() that you keep as implementation
detail inside this helper.

-- 
With Best Regards,
Andy Shevchenko


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help