git: 2567cf1925bd - stable/14 - vt(4): Call vd_postswitch callback regardless of the current window

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 21:32:32 UTC
The branch stable/14 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=2567cf1925bdcde0230bddb8ed5ca75056d4afa7

commit 2567cf1925bdcde0230bddb8ed5ca75056d4afa7
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-11-24 17:30:34 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2024-02-17 20:58:34 +0000

    vt(4): Call vd_postswitch callback regardless of the current window
    
    [Why]
    We want the same behavior at the backend level, regardless if we need to
    switch the current window or not.
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D42751
    
    (cherry picked from commit 16b13bd3fd63be56653296ba54956f5526918445)
---
 sys/dev/vt/vt_core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 3e4db9a1ba30..bfd99665be4a 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -579,8 +579,6 @@ vt_window_switch(struct vt_window *vw)
 		 * debugger entry/exit to be equivalent to
 		 * successfully try-locking here.
 		 */
-		if (curvw == vw)
-			return (0);
 		if (!(vw->vw_flags & (VWF_OPENED|VWF_CONSOLE))) {
 			inside_vt_window_switch = false;
 			return (EINVAL);