summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_pdev.c
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2019-12-06 21:36:10 +0000
committerad <ad@NetBSD.org>2019-12-06 21:36:10 +0000
commit9cd27e1cdf410b7fbf73c938a0e61a2a5ffbe995 (patch)
tree191f68b98ae5ec15367b5310a78e1fe49f461696 /sys/dev/dm/dm_pdev.c
parentefb1802689273db75fbc8fcd4c6d2be389bf572e (diff)
Make it possible to call mi_switch() and immediately switch to another CPU.
This seems to take about 3us on my Intel system. Two changes required: - Have the caller to mi_switch() be responsible for calling spc_lock(). - Avoid using l->l_cpu in mi_switch(). While here: - Add a couple of calls to membar_enter() - Have the idle LWP set itself to LSIDL, to match softint_thread(). - Remove unused return value from mi_switch().
Diffstat (limited to 'sys/dev/dm/dm_pdev.c')
0 files changed, 0 insertions, 0 deletions