Bug 180588 - [cpufreq] [patch] cpufreq cannot be loaded as kernel module
Summary: [cpufreq] [patch] cpufreq cannot be loaded as kernel module
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2013-07-16 05:40 UTC by Jia-Shiun Li
Modified: 2018-05-20 23:49 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (4.99 KB, patch)
2013-07-16 05:40 UTC, Jia-Shiun Li
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jia-Shiun Li 2013-07-16 05:40:00 UTC
cpufreq, though can be compiled as kernel module, does not actually load. It currently rely on gathering feature requests of sub-drivers and requesting to ACPI at boot time. If it is disconnected from boot time ACPI logic, it cannot tell ACPI to expose needed methods.

Details described in:
http://lists.freebsd.org/pipermail/freebsd-hackers/2013-January/041636.html

Fix: Remove get_features method of acpi_if.m and relevant code. Instead directly specify feature flags OSPM will use to ACPI.

Patch attached with submission follows:
How-To-Repeat: 1. compile and run a kernel without 
  device cpufreq
in kernel config file

2. kldload cpufreq
Comment 1 Martin Birgmeier 2015-10-26 11:08:19 UTC
Hi Jia-Shiun,

I am running 10.2, and the problem seems to still persist.

Could you please tell me what has happened since you filed this PR?

Are you running your systems with your patch?

-- Martin
Comment 2 Jia-Shiun Li 2015-10-27 12:00:10 UTC
(In reply to Martin Birgmeier from comment #1)

Nothing happened. It seems no one was interested to take it.
http://lists.freebsd.org/pipermail/freebsd-hackers/2013-July/043064.html

No I do not use it now. But the patch still applies to 11-current.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-20 23:49:53 UTC
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017

Do
- Set Status to "Open"