HomeFreeBSD

Tune cpuset macros to optimize cases when CPU_SETSIZE fits into single
rS232852Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Tune cpuset macros to optimize cases when CPU_SETSIZE fits into single
machine word. For example, it turns CPU_SET() into expected shift and OR,
removing two extra shifts and additional index on memory access.

Generated code checked for kernel (optimized) and user-level (unoptimized)
cases with GCC and CLANG.

Reviewed by: attilio
MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS232851: Simplify the error checking in one branch of trap_pfault() and update
Branches
Unknown
Tags
Unknown

Event Timeline