mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 09:56:47 -05:00
Overall, this is a non-functional change, except for kernels built with SCHED_STATS. However, the switch types are useful for communicating the intent of the caller. 1. Ensure that every caller provides a type. In most cases, we upgrade the basic yield to sched_relinquish() aka SWT_RELINQUISH. 2. The case of sched_bind() is distinct, so add a new switch type SWT_BIND. 3. Remove the two unused types, SWT_PREEMPT and SWT_SLEEPQTIMO. 4. Remove SWT_NONE altogether and assert that callers always provide a type flag. 5. Reference the mi_switch(9) man page in the comments, as these flags will be documented there. Reviewed by: kib, markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38184 |
||
|---|---|---|
| .. | ||
| bman.c | ||
| bman.h | ||
| bman_fdt.c | ||
| bman_portals.c | ||
| fman.c | ||
| fman.h | ||
| fman_fdt.c | ||
| fman_mdio.c | ||
| if_dtsec.c | ||
| if_dtsec.h | ||
| if_dtsec_fdt.c | ||
| if_dtsec_im.c | ||
| if_dtsec_im.h | ||
| if_dtsec_rm.c | ||
| if_dtsec_rm.h | ||
| portals.h | ||
| portals_common.c | ||
| qman.c | ||
| qman.h | ||
| qman_fdt.c | ||
| qman_portals.c | ||