While emulating the bell, wsdisplay could end up sleeping when reaching
authoranton <anton@openbsd.org>
Sat, 26 Nov 2022 06:20:18 +0000 (06:20 +0000)
committeranton <anton@openbsd.org>
Sat, 26 Nov 2022 06:20:18 +0000 (06:20 +0000)
commitdd63842157a3e064821229c81b33dcf484cf7a48
tree6217fa99eab85975e6c80435d7523bb6b83eaddd
parent846b8ba2848063dad7bfab6b5a55d301642a7c68
While emulating the bell, wsdisplay could end up sleeping when reaching
down to wsmux. This does not work since we're in interrupt context, as
pointed out by witness.

Instead, defer the work to a task which in turn will execute in process
context.

Problem reported by beck@

ok visa@
sys/dev/wscons/wsdisplay.c