opnsense-src/sys/dev/dpaa
Mitchell Horne 1029dab634 mi_switch(): clean up switch types and their usage
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
2023-02-09 12:01:32 -04:00
..
bman.c dpaa bman: Remove unused bman_devclass. 2022-05-10 10:21:39 -07:00
bman.h
bman_fdt.c dpaa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
bman_portals.c mi_switch(): clean up switch types and their usage 2023-02-09 12:01:32 -04:00
fman.c dpaa: Go to cleanup exit point on fman attach error 2022-11-05 20:05:24 -04:00
fman.h Remove a singleton in the DPAA driver, to allow multiple fman instances 2017-11-01 00:46:48 +00:00
fman_fdt.c dpaa: Don't probe disabled devices 2022-11-26 19:45:37 -05:00
fman_mdio.c dpaa: Don't assume the MDIO is on the same fman as the MAC 2022-11-28 17:03:15 -05:00
if_dtsec.c Mechanically convert dtsec(4) to IfAPI 2023-01-24 15:05:28 -05:00
if_dtsec.h Mechanically convert dtsec(4) to IfAPI 2023-01-24 15:05:28 -05:00
if_dtsec_fdt.c dpaa: Don't assume the MDIO is on the same fman as the MAC 2022-11-28 17:03:15 -05:00
if_dtsec_im.c Update DPAA SDK to SDK 2.0 2017-10-30 03:41:04 +00:00
if_dtsec_im.h
if_dtsec_rm.c dpaa: Fix warnings in dtsec(4) found by clang 2019-08-21 02:26:22 +00:00
if_dtsec_rm.h
portals.h Update DPAA SDK to SDK 2.0 2017-10-30 03:41:04 +00:00
portals_common.c [PowerPC] [Book-E] Fix dpaa interrupt binding. 2020-02-25 03:35:52 +00:00
qman.c dpaa: Remove unused variables. 2022-04-13 16:08:23 -07:00
qman.h
qman_fdt.c dpaa: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-10 10:21:39 -07:00
qman_portals.c mi_switch(): clean up switch types and their usage 2023-02-09 12:01:32 -04:00