HomeFreeBSD

Change the callout to supply -1 to indicate we are not changing

Description

Change the callout to supply -1 to indicate we are not changing
CPU, also add protection against invalid CPU's as well as
split c_flags and c_iflags so that if a user plays with the active
flag (the one expected to be played with by callers in MPSAFE) without
a lock, it won't adversely affect the callout system by causing a corrupt
list. This also means that all callers need to use the macros and *not*
play with the falgs directly (like netgraph used to).

Differential Revision: htts://reviews.freebsd.org/D1894
Reviewed by: .. timed out but looked at by jhb, imp, adrian hselasky

tested by hiren and netflix.

Sponsored by: Netflix Inc.

Details

Provenance
rrsAuthored on
Reviewer
jhb
Parents
rS280784: Re-enable using -mllvm -enable-load-pre=false in CLANG_OPT_SMALL for
Branches
Unknown
Tags
Unknown

Event Timeline