686bcb5c14
Don't hold the scheduler lock while doing context switches. Instead we unlock after selecting the new thread and switch within a spinlock section leaving interrupts and preemption disabled to prevent local concurrency. This means that mi_switch() is entered with the thread locked but returns without. This dramatically simplifies scheduler locking because we will not hold the schedlock while spinning on blocked lock in switch. This change has not been made to 4BSD but in principle it would be more straightforward. Discussed with: markj Reviewed by: kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D22778 |
||
---|---|---|
.. | ||
bman_fdt.c | ||
bman_portals.c | ||
bman.c | ||
bman.h | ||
fman_fdt.c | ||
fman_mdio.c | ||
fman.c | ||
fman.h | ||
if_dtsec_fdt.c | ||
if_dtsec_im.c | ||
if_dtsec_im.h | ||
if_dtsec_rm.c | ||
if_dtsec_rm.h | ||
if_dtsec.c | ||
if_dtsec.h | ||
portals_common.c | ||
portals.h | ||
qman_fdt.c | ||
qman_portals.c | ||
qman.c | ||
qman.h |