3fd7f57e57
MI code always calls pmap_deactivate/pmap_activate on context switch. Instead, just record the last active lwp (or NULL if it exited) and defer switching VM context to pmap_activate(). This saves an additional function call overhead in cpu_switchto(). While here, g/c unused cpuswitch.S local .Lblock_userspace_access.