HomeFreeBSD

sched.h: Fix _S macros for better compatibility with glibc.

Description

sched.h: Fix _S macros for better compatibility with glibc.

In e2650af157 was added "_S" macros for compatibility with glibc, but it's still
incompatible as under glibc the macros whose names end with "_S" operate on the
dynamically allocated CPU set(s) whose size is in bytes, not in bits.

While here remove limiting ifdef to non-kernel case.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D38110
MFC after: 1 week

(cherry picked from commit 02f7670ed243498aea96150962c2c9916bab7c98)

Details

Provenance
dchaginAuthored on Jan 29 2023, 12:34 PM
Reviewer
kib
Differential Revision
D38110: sched.h: Fix _S macros for better compatibility with glibc.
Parents
rGe600dd820db3: smp: Drop confusing braces and return statement as panic() is never returns.
Branches
Unknown
Tags
Unknown