506c867c6e
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 |
||
---|---|---|
.. | ||
dev | ||
hal | ||
board_cpld.c | ||
board_eeprom.c | ||
board.c | ||
board.h | ||
bus_space_rmi_pci.c | ||
bus_space_rmi.c | ||
clock.h | ||
cms.c | ||
files.xlp | ||
interrupt.h | ||
intr_machdep.c | ||
mpreset.S | ||
msgring.h | ||
std.xlp | ||
tick.c | ||
uart_cpu_xlp.c | ||
usb_init.c | ||
xlp_machdep.c | ||
xlp_pci.c | ||
xlp_simplebus.c | ||
xlp.h |