From nobody Sat Feb 17 21:32:32 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tchpm4rbRz59lBb; Sat, 17 Feb 2024 21:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tchpm1zlvz4gdq; Sat, 17 Feb 2024 21:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rYH01wfQRqxyOEwxW3tRyJW9qX5rHKx1ySfuvAyhdpo=; b=xI9atyTIdjm9R9WILyfrOk0nMaV7jOwigUxP4rZZP8Ap2BN06B4POG1Pdtc3zH2nmEXaYf a6h6nKDrZdaUl8UDeCJ4PX59OBdRkVCeeMn+JuFr9dlv1bt2REH73vypA9uR2DedeV15Uq 7Hs9lm+YHw76femGRd50uozA6RonIPgrlL9/eNVWNzHPFn69EmZsx4B/UGZ3JWbueMG474 UjKuXZwbXTMddhPdH7EW92Qq+uXHJP+fF4gAfTEU4UPJWcbD7pr5nlQSPTVADTeaHKe7wf m2C2qa6XtsjzQ0ZhbCswwiY+Em2WG3zeUtKX/Er/3fZVPvQkpc+lfNnViWwC1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708205552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rYH01wfQRqxyOEwxW3tRyJW9qX5rHKx1ySfuvAyhdpo=; b=TasiR8xicTD1mBE/tKFmP9z+6Pfc876rvctD6oeFIVJibuD04g/8frjPZtTZ7CLyPPe0Kv zju8H/v9MkrcuGFEJolU5b95T7QfY2z3VxIchP9w25frEDotU5VYn3bODiuu1LpzAByxVy pvg4kYobolsdCqnIOlSC5onbCx6QS2RpBKoeYsYmd5CjWAuSmoRBCBhNBgW65daneXaN0J pihrMahrlR+yRJUsFxV/H+oJHs2uYS+V5kqEDCRkUfrwL859OVfWflvBSIn7tbzvNWxbne TXiQ76ExP7jueepqNztB72GHIAN1/XdLJ6WLDheU8sDthHnz9vhdV+hAZrLbYQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708205552; a=rsa-sha256; cv=none; b=wWhXAey0Sjylwh53jOZOTKGdcG/oIXE4jKABlVT859+yL6zf9Ztb+9RVCcujmyg9CXoLPW RoTZLmwyuoueoPqzgPi5orgqgZ/TZpkrZB0xe5Qlp7H9IVCYlMC40UuKlUHdeLNmtmagkE oKSU6P6BeqWNWGDSLoN3CH98a42aEjXtIJW/yNh57M4Ld2lc+hRURjbuBmdWbdnIvW8iLO xLGaGFb3a5vH/GUF0sZYkLYYbSbK2y8/QJQT2O39GaW/JJyqhSapjEt+NY6MsNvifcb028 1n6gtYRZhdxmqurOvxZDqZO8QAsL5VpcnPMAYGCoOl8yGYrlnnixUWXRHRekxg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tchpm159GzPJg; Sat, 17 Feb 2024 21:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41HLWWv2019651; Sat, 17 Feb 2024 21:32:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41HLWWY1019648; Sat, 17 Feb 2024 21:32:32 GMT (envelope-from git) Date: Sat, 17 Feb 2024 21:32:32 GMT Message-Id: <202402172132.41HLWWY1019648@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 2567cf1925bd - stable/14 - vt(4): Call vd_postswitch callback regardless of the current window List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2567cf1925bdcde0230bddb8ed5ca75056d4afa7 Auto-Submitted: auto-generated 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 AuthorDate: 2023-11-24 17:30:34 +0000 Commit: Vladimir Kondratyev 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);