Thread (22 messages) 22 messages, 5 authors, 15h ago

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:15:06
Also in: lkml, stable

On Tue, Jun 23, 2026 at 11:11:34PM +0300, Andy Shevchenko wrote:
On Tue, Jun 23, 2026 at 03:34:58PM +0000, Bradley Morgan wrote:
quoted
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.
Ah, sorry, I have thought that the mask is part of sysinfo implementation.
Disregard my above comment, it can't be done without also supplying the pointer
to the original one, which makes no sense.

-- 
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