From nobody Thu Apr 21 17:29:57 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 17F1A1990235; Thu, 21 Apr 2022 17:29:58 +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 4Kkl0j6dQfz4WVQ; Thu, 21 Apr 2022 17:29:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562198; 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=7baTv7bX06lGVfiSYYvWjOuTBG2XDZwp8NyiGD2WjOE=; b=K5JRw2unKr5QeuotSm4+MmYKCDytx2U5bQn0GkAFN6+PPYLlKVMkgRHYK15fowfvUoDojb RM6EYcKR2vu61ujAjn4MgGebB57ZOB6JESO0Q0RTsN74takAoeVsTuIJVhyhGY3z3hxNEi Xjsiqddik9y7W7VLrenZV2AInWeCK1+MqGL/Bx9OquzI1npdTdTEPtik/eFDHglU76HyZh mJQU1wLMkRjq00+UHiwNatR+lafQ0cCfxrCy6uAn+SSf3CU3lxr+EBl8LeXgw2kst26Wpe SuJz3DG7NqdWy+we6XcJLCA752U7IcCD4OqpgSP0M2HEQ+ERQoM8zju8owZUxw== 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 B3BD65193; Thu, 21 Apr 2022 17:29:57 +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 23LHTvXA099482; Thu, 21 Apr 2022 17:29:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LHTvDY099481; Thu, 21 Apr 2022 17:29:57 GMT (envelope-from git) Date: Thu, 21 Apr 2022 17:29:57 GMT Message-Id: <202204211729.23LHTvDY099481@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: e206dddcfe37 - main - acpi_cpu: Use device_get_devclass to find devclass in attach. 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: e206dddcfe37c7b49a7d4e2d250ffce804ea8aa0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650562198; 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=7baTv7bX06lGVfiSYYvWjOuTBG2XDZwp8NyiGD2WjOE=; b=THlKTmF8CeCDJQNZskbAy8glQVMx4tN1zVuGQ3LTK5j+Rvdx40g5qy9d0UoABztBHmrpo7 NidO3aIUf4uzzjvwMP150BYH0oRWCx/xab78wLaCqTXgmwFr22/Kt1G3kRaKhWtw4Y9ldt In5gh++7nVcknl5j+8m4ZvOjbUj+1/la/8LPe9lmjGApDcBtyIEtamXE+N7JLzrKXcTG1t WKSIG4/XaYSBdQJ0NlLGjVwxNSdReLOO+oi1H4XsFKH5Y1EVAnUj298uAXvY0RsV0bbV8M J+zLAK/t7lzJSprkOLfT0wQMxRLuamNecxxpUoG+JT6ZVbWBmWX9HuL7nDyWDQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650562198; a=rsa-sha256; cv=none; b=X01QC6kWbH94l3G+ozYsfsDyKwX9y66oXguXq0Fs+HMumV2f9fQinRxvo0jL5by5v6JFkc 0zfyVEKF8U37U7v6tIxEdUnoWtPp8ovaexOI2eSv1vodwQUGcqoWfv0/PzAv2GuTMx81us us8eWHxMfvXkMscHdK7qMLTkO/XDJuGxmE5sgVpNfTrLIU8cooLcIIHdlRZl30ubkNnHUP LFS9ChBYh6HWuKhvTqIiPOVCfUKRehXb0iZctrTYh3LJ2DDW4MMcoDxCUtlnFUIP1cnZFc To8Q8xcc305Pzz8cgQWgz3yuOy87jFM60wGnCqzm1LPACA9XmA/IZFTn5g/IjA== 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=e206dddcfe37c7b49a7d4e2d250ffce804ea8aa0 commit e206dddcfe37c7b49a7d4e2d250ffce804ea8aa0 Author: John Baldwin AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin CommitDate: 2022-04-21 17:29:13 +0000 acpi_cpu: Use device_get_devclass to find devclass in attach. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34988 --- sys/dev/acpica/acpi_cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c index a8bf2ee8cd47..1663609d970b 100644 --- a/sys/dev/acpica/acpi_cpu.c +++ b/sys/dev/acpica/acpi_cpu.c @@ -399,7 +399,8 @@ acpi_cpu_attach(device_t dev) sc->cpu_features |= ACPI_CAP_SMP_C1_NATIVE | ACPI_CAP_SMP_C3_NATIVE; #endif - if (devclass_get_drivers(acpi_cpu_devclass, &drivers, &drv_count) == 0) { + if (devclass_get_drivers(device_get_devclass(dev), &drivers, + &drv_count) == 0) { for (i = 0; i < drv_count; i++) { if (ACPI_GET_FEATURES(drivers[i], &features) == 0) sc->cpu_features |= features;