From nobody Thu Apr 21 17:30:11 2022 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 EB11B19910E7; Thu, 21 Apr 2022 17:30:13 +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 4Kkl101wBqz4WYX; Thu, 21 Apr 2022 17:30:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562213; 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=NX9TZ8PWtY95AtTouWcEl68Tq7734uVwWTvIlFMS6Xo=; b=RoE9hDahfKyBuJYpmw+gDurpP8kCl8UigtaWfpD/YZN74vxvOMwH2ajFayKML/wGH5L3GO j3a3zuQMC5wwTWZcBDuwc5yoRu5NyFNpc9v2NPw4kKhOmJShdRpeeWy8KMSMOpb7cNPMmh C5gJAQeY0kpE5gCXvTzhrBrGMfg5yH+ril97tk9t7Oj7Xd9cFZPBLt2TBXOZR07ozwsQZv t2ElrryiA2oUiKzxrSQjfOQUun9TNZIWNkylrNefPzinYLmxYRgvHPIDLOecJt5D7VFeOU cKUc861BqBiO0oDgAFVlP/ILwHeDXqFavBuLbH/4F+K4VnHGBsyPG+iMB4ZVRA== 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 E6D125132; Thu, 21 Apr 2022 17:30:11 +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 23LHUBIW003631; Thu, 21 Apr 2022 17:30:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHUBuR003625; Thu, 21 Apr 2022 17:30:11 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:30:11 GMT Message-Id: <202204211730.23LHUBuR003625@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: 3d7e90fc201a - main - cpufreq_curr_sysctl: Use devclass_find to lookup cpufreq devclass. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d7e90fc201a4e50502f0eb6116371a3b70d3cbf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562213; 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=NX9TZ8PWtY95AtTouWcEl68Tq7734uVwWTvIlFMS6Xo=; b=MfHhO90JiqjFwFlOHYHzj6kEn6Fzk5AgL6HOgw7O4OdKqv4uKxQBqXuxcgsPNUop1Htktd id20UAqeXa3m1VdgCbdXDLW4lqsfRAxOFH3ftVsb9SZN2MPg+1bYns+9Fnj1A2uT1d2bbf 0h7bvZ7fVy+GD2BUcZk1+TSvbawGTvRXZXYip089DhEKgoX9h6tEqlwsyfLGLnpMgBYpjk cQHeSO8O9bNEFdAUJXLX64CvN6j9M0Iiee6TqnuwUS614npXsG1j+JISvk4rRbhje1R2Vf 0LuwgMF6mUkSsReLAc274kDrZK0CdhjZx/DMt28wJQ3YB4WF5KaMGiP7y/IvsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562213; a=rsa-sha256; cv=none; b=gKps8Peaw1G8OrXMudIqR1baR/fA4Y+1ZqIMNfwSShLJ+ZJovwid6Jn9KqEK2nxAa7bWDa kqDZe9IvAXyYDnIZ7EUepIbSY6irI6mpIwedf7tX0xF62cCDtkF7mAcm6O0xs2bahVQjPF 95JHkPzoLpaLiXsfdvC+AVuGgDyXbX6Hg4MFTlKIjTEOniCWhP9f2PTfc3U+41+RnCgdi0 78kIbxSM0KX/jEL+rsPW2F/gqnMLA9AqE3UETUhR04QUM05sQWZiwYf/rSs/89niem5VMo wBr+SpxpWJMi4igHL5UFI5nhkHTqNqi5l5+t37FtbHdv5x327If3nPSvro1zfw== 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=3d7e90fc201a4e50502f0eb6116371a3b70d3cbf commit 3d7e90fc201a4e50502f0eb6116371a3b70d3cbf Author: John Baldwin AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:14 +0000 cpufreq_curr_sysctl: Use devclass_find to lookup cpufreq devclass. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D35002 --- sys/kern/kern_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c index 8272f9b4795c..61b014468292 100644 --- a/sys/kern/kern_cpu.c +++ b/sys/kern/kern_cpu.c @@ -957,7 +957,7 @@ cpufreq_curr_sysctl(SYSCTL_HANDLER_ARGS) * CPUs have equal levels), we call cpufreq_set() on all CPUs. * This is needed for some MP systems. */ - error = devclass_get_devices(cpufreq_dc, &devs, &devcount); + error = devclass_get_devices(devclass_find("cpufreq"), &devs, &devcount); if (error) goto out; for (n = 0; n < devcount; n++) {