git: 3d7e90fc201a - main - cpufreq_curr_sysctl: Use devclass_find to lookup cpufreq devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:11 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3d7e90fc201a4e50502f0eb6116371a3b70d3cbf commit 3d7e90fc201a4e50502f0eb6116371a3b70d3cbf Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-21 17:29:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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++) {