From nobody Sun Dec 01 04:57:48 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 4Y1F651Z50z5gDCq; Sun, 01 Dec 2024 04:57:49 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y1F644jcHz4CZm; Sun, 1 Dec 2024 04:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029068; 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=SVXDa7FUOxCZ/epvgu6LB1PwvHsF38txzaB5JLDJuEY=; b=WyEm/PEdTReoFEkZ0lpbsLqfG6uyZiTynVS4SDKV4uwoQ7HnHK1O632BUngKko9WUqZr2P gT6No30e19NUUWkCL7+XMptazOEWdkBmWUyqO8YY9S29x4VvUaQdfK/z7isNABXPtldRNb 9sxQhLNnzARywQxiDZc+qyf3EfJGR4AOF2FmfMMI80S2J2ezCeVKNRXOnzkAjDFXxhg0nx 5mZmnxrYwSgUVmRP1ZLx/RTgCehs5zbsTMdFZHcshim4UcGnQ3uF6rUK4/MJ/p21AJfEi0 oRGuoHwpseI6xnxGWLT/mAFO74HYoDmx+iupns4SzKkYzDEwzg3yj3Gvk5n/9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029068; 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=SVXDa7FUOxCZ/epvgu6LB1PwvHsF38txzaB5JLDJuEY=; b=m6hMtWax1BZl9m0KjG6S/eX7ca+9PDLU9pYeLJDFvWC4lPSPFC2CO7Lgq+NShIRHCxwJOS UxLP9paFtoyMTRgp7Fr/aPGXTf5tC1jl/pW5n7jyKxrm6+Q8/Ym858WdI/PDY/Q9TD+W2p 8oBBCa9Sd6cbEaHl27WMaxWEht7f0eLtBh3czbDbd7KXZxKlQVOA7/bSZRXLphcn7cPrVG g9eX1vVft4hfQ+0icZsXoxemOlVUKYFLSEv77nxnShAX8xh1+hr+YpPFRe9Oyx0ymvT+aI 91dgS9oUrZYaK+S7+NHLMqSKaW2dz1Ocg336FlRXgJfLzAxAq28ppQQN6f9oXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029068; a=rsa-sha256; cv=none; b=PAt9+vbKEUPVgIPFrv+B7G6K72K7wjeE2fFhUhA6hQpFwZ+EpJZtS9PHT9oYXyMMEqywqi Vmowvfcyxxg3vty3vT4ZxlkC3GmF9ZJhWroGLCd/duBkWMdK7QYu5rWFwVpuOe8MyKoSMq ifGUYXGdbescgktx4FhVaOsNyiEDL5b1bozIMkNS6Nfu8qQKe0lV1FFV+nNmY3HUdo2GZD 9fBezMzeM4vSOUDAInL2dRRtbr/+WTaKSCHQFobmmhSoEkY1NA8jBHMxB4ckC3jRJpwfGp MC+MKtv/bO53HY+J6mYZmxTubjeCckTIAzXY2aOxjGe7z5GQAhMKOehTGA79YA== 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 4Y1F644KYzzfLP; Sun, 1 Dec 2024 04:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4B14vmj5096983; Sun, 1 Dec 2024 04:57:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14vm6F096980; Sun, 1 Dec 2024 04:57:48 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:48 GMT Message-Id: <202412010457.4B14vm6F096980@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 191ed65ad2ce - stable/13 - cpufreq: Use a real device_probe routine 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/stable/13 X-Git-Reftype: branch X-Git-Commit: 191ed65ad2ce1b96361b2d05862b9745f9cdcec6 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=191ed65ad2ce1b96361b2d05862b9745f9cdcec6 commit 191ed65ad2ce1b96361b2d05862b9745f9cdcec6 Author: John Baldwin AuthorDate: 2024-10-21 14:24:15 +0000 Commit: John Baldwin CommitDate: 2024-11-30 21:34:41 +0000 cpufreq: Use a real device_probe routine cpufreq doesn't have any child drivers, so calling bus_generic_probe was a nop. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47184 (cherry picked from commit ce968b095e75262ba3605491acf6850ce331481d) --- sys/kern/kern_cpu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c index 8d7d9b59bd07..04a9b2ac6c44 100644 --- a/sys/kern/kern_cpu.c +++ b/sys/kern/kern_cpu.c @@ -98,6 +98,7 @@ TAILQ_HEAD(cf_setting_lst, cf_setting_array); printf("cpufreq: " msg); \ } while (0) +static int cpufreq_probe(device_t dev); static int cpufreq_attach(device_t dev); static void cpufreq_startup_task(void *ctx, int pending); static int cpufreq_detach(device_t dev); @@ -117,7 +118,7 @@ static int cpufreq_levels_sysctl(SYSCTL_HANDLER_ARGS); static int cpufreq_settings_sysctl(SYSCTL_HANDLER_ARGS); static device_method_t cpufreq_methods[] = { - DEVMETHOD(device_probe, bus_generic_probe), + DEVMETHOD(device_probe, cpufreq_probe), DEVMETHOD(device_attach, cpufreq_attach), DEVMETHOD(device_detach, cpufreq_detach), @@ -141,6 +142,13 @@ SYSCTL_INT(_debug_cpufreq, OID_AUTO, lowest, CTLFLAG_RWTUN, &cf_lowest_freq, 1, SYSCTL_INT(_debug_cpufreq, OID_AUTO, verbose, CTLFLAG_RWTUN, &cf_verbose, 1, "Print verbose debugging messages"); +static int +cpufreq_probe(device_t dev) +{ + device_set_desc(dev, "CPU frequency control"); + return (BUS_PROBE_DEFAULT); +} + /* * This is called as the result of a hardware specific frequency control driver * calling cpufreq_register. It provides a general interface for system wide