HomeFreeBSD

vt(4): Call post-switch callback after replacing the backend

Description

vt(4): Call post-switch callback after replacing the backend

[Why]
For instance, it gives a chance to the new backend to refresh the
screen. This is needed by the vt_drmfb backend and drm_fb_helper.

This change was lost when I posted changes to reviews.freebsd.org and it
broken the amdgpu driver... Thanks to manu@ for reporting the problem
and wulf@ to find out the missing change!

Tested by: manu
Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D42834

(cherry picked from commit 40c20fc29cad4d38d9a565e9c7ba78612097308e)

Details

Provenance
dumbbellAuthored on Nov 29 2023, 6:34 PM
wulfCommitted on Feb 17 2024, 8:58 PM
Reviewer
manu
Differential Revision
D42834: vt(4): Call post-switch callback after replacing the backend
Parents
rGfc00c0377974: vt(4): Always call vt_window_switch() in vtterm_cnungrab()
Branches
Unknown
Tags
Unknown