CPU_NEED_RESCHED(9) | NetBSD Kernel Developer's Manual | CPU_NEED_RESCHED(9) |
If RESCHED_IMMED flag is specified in flags, machine-dependent code should make a context switch happen as soon as possible. In that case, for example, if ci is not the current processor, cpu_need_resched() typically issues an inter processor call to the processor to make it notice the need of a context switch as soon as possible.
Specifically, the cpu_need_resched() function will perform the following operations:
July 31, 2010 | NetBSD 5.99 |