Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 2023 17:31:58 GMT
From:      =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= <dumbbell@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 16b13bd3fd63 - main - vt(4): Call vd_postswitch callback regardless of the current window
Message-ID:  <202311241731.3AOHVw0w061966@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dumbbell:

URL: https://cgit.FreeBSD.org/src/commit/?id=16b13bd3fd63be56653296ba54956f5526918445

commit 16b13bd3fd63be56653296ba54956f5526918445
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-11-24 17:30:34 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-11-24 17:31:33 +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
---
 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311241731.3AOHVw0w061966>