* Waiman Long:
On 10/4/23 08:34, Florian Weimer wrote:I mean the CPU_FILL_S macro also defined in the patch. Correctly
* Peter Zijlstra:I believe the macro just use sizeof(cpu_set_t) as the size of the
Subject: sched: Add CPU_FILL()My main concer is that obtaining the size of the mask, or at least an
Add the CPU_FILL() macros to easily create an all-set cpumask.
FreeBSD also provides this macro with this semantic.
Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
approximiation is not exactly easy. If there's an expectation that
applications reset the mask more often than they do today (I don't have
the full context here), then we'd some decent interface to get the
approriate size.
bitmask. It is the same case as in CPU_ZERO().
written applications should not use CPU_FILL and statically sized CPU
sets.