Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204069 - sys-power/cpufrequtils modprobe enhancement
Summary: sys-power/cpufrequtils modprobe enhancement
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 16:01 UTC by jieryn
Modified: 2010-01-15 19:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
quietly probe for user specified governor in /etc/init.d/cpufrequtils (cpufrequtils-init.d.patch,535 bytes, patch)
2008-01-02 16:02 UTC, jieryn
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jieryn 2008-01-02 16:01:29 UTC
Currently, cpufrequtils blindly attempts to set the governor specified in /etc/conf.d/cpufrequtils GOVERNOR. Many other init scripts try to be have nicer by modprobing required modules before exploiting them, the following patch does exactly that.

I use modprobe --quiet to ensure that users with cpufreq governors built-in see no error messages.

Reproducible: Always
Comment 1 jieryn 2008-01-02 16:02:33 UTC
Created attachment 139878 [details, diff]
quietly probe for user specified governor in /etc/init.d/cpufrequtils
Comment 2 SpanKY gentoo-dev 2008-10-20 16:03:16 UTC
a better idea might be to have cpufreq-set itself do the modprobe ... if the set fails, it will execve modprobe on the specified governor ...
Comment 3 SpanKY gentoo-dev 2010-01-15 07:40:19 UTC
ive written a patch and added it to 006 such that cpufreq-set will run `modprobe` if the initial gov write fails
Comment 4 SpanKY gentoo-dev 2010-01-15 19:49:04 UTC
actually, ive dropped my patch.  recent kernels will automatically do the same thing (issue a module request when given an unknown gov).