From nobody Wed Apr 13 23:09:45 2022 X-Original-To: dev-commits-src-main@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 B5E871B41164; Wed, 13 Apr 2022 23:09:46 +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 4KdywT6FD7z4m9f; Wed, 13 Apr 2022 23:09:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891386; 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=c4nZ7pYfmj/J7JK8ze1reBSZtH5tb+5msaMhvX1mv1k=; b=QPhpVM6YNOLU8ZVU1NmcOvU1zRIpfoOUpm7WsENqJfU1NCsxssUY/cvLyh53SItaVrz5Au cwsxGy4xsf5/9C8sk0rwp6gTtX6oakJx+dQldu5SbYX5u71AOPC4xGgmYDcW4LgmgKEt3S mqYV9Yaj9VwNLPxekqCVW+1x6yYvPzlZ6aQ8gYbLwYllB+oshhwY3v1zZHf2nvDwqPQMWS Z3QxsTh9c0lRpJE9y1oZy+mKy7kniC2gDiER8FAnhatVcPp+sWh6/fnuw8QEcn9kb96Shl 9+/Y7cFE50VU5LL99+zSdExNu4GWKuZE2G2sGDqxKSpj0DL/6Wvj61BcbG7GCg== 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 6BAAE15265; Wed, 13 Apr 2022 23:09:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23DN9jca074788; Wed, 13 Apr 2022 23:09:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9jZ8074786; Wed, 13 Apr 2022 23:09:45 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:45 GMT Message-Id: <202204132309.23DN9jZ8074786@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8758ac757fe6 - main - sched_4bsd: ts is only used in sched_bind for SMP. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8758ac757fe69e5504e7dc952341955791c10cf7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891386; 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=c4nZ7pYfmj/J7JK8ze1reBSZtH5tb+5msaMhvX1mv1k=; b=YtZ5i82AVIAtcazIGpEbF8PTe8eHeNQOV0DWGDrnna/VZC+gtH5WRSpyYxGyvsY9VhgXOn ykB0ArX+UksEgd/7iAgaTbYjVblZ1ikIEA3IaWtYpC5XGEbpQwZNvrl+hArcuTyaewrM91 fYUvLBY91jMYHM2b9LwepGF3H4aCdX9IHIz2vUun/6f8sLv99tQ6Ku6MbInK54G6Dr7Ryf JaokVRgVO5zVm18Ih1A7dTFwJIQHKUfikiWudBp3PISXJhj4CcEp+z3qoO6QXd1pQKVJEA eh5Qi6u+8EaGDm1kXVXzGAOp9OPOmGbTKhXwRDr5RwImAh8fAeUnNCk1JdqtIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891386; a=rsa-sha256; cv=none; b=pAwOFdYMKMJjUbH4nW1mQyqdVmSe+AwAq1QwNe+BuGFrI2XnQ48fBkCZapzfQ/wHHf0uvy xbPLMBPSQN5LOtx2ZYK7WAZLH8ISFIIKpasIzuGyQjee6Sr2qBv0KRz7p1cGWiM5Rr5L45 GRbJvYAHIYDR05aeZhUY6sYhlmD4Z2P++3NCHEZH46SA3IbHqAY09fagTLRVxFSLOKibv7 2NYlYZ1tEZUHg1xQR045b93odXtIhZS8A2r8RqS+9aXXuS2T60uyf/+sIij8W+NML759bg M4qgV951Fj0puu76b9XBgAQjE2akTdEqsOCSLIaxG+JvgWxJBo2K2keOqmNb4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8758ac757fe69e5504e7dc952341955791c10cf7 commit 8758ac757fe69e5504e7dc952341955791c10cf7 Author: John Baldwin AuthorDate: 2022-04-13 23:08:22 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:22 +0000 sched_4bsd: ts is only used in sched_bind for SMP. --- sys/kern/sched_4bsd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 654d0a15037d..3715402854c7 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -1526,13 +1526,13 @@ sched_userret_slowpath(struct thread *td) void sched_bind(struct thread *td, int cpu) { - struct td_sched *ts; +#ifdef SMP + struct td_sched *ts = td_get_sched(td); +#endif THREAD_LOCK_ASSERT(td, MA_OWNED|MA_NOTRECURSED); KASSERT(td == curthread, ("sched_bind: can only bind curthread")); - ts = td_get_sched(td); - td->td_flags |= TDF_BOUND; #ifdef SMP ts->ts_runq = &runq_pcpu[cpu];