Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100269 Details for
Bug 152057
sys-power/cpufreqd - misleading error message in /etc/init.d/cpufreqd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cpufreqd-2.2.0-init.d.patch
cpufreqd-2.2.0-init.d.patch (text/plain), 1.73 KB, created by
Piotr Jaroszyński (RETIRED)
on 2006-10-23 05:47:55 UTC
(
hide
)
Description:
cpufreqd-2.2.0-init.d.patch
Filename:
MIME Type:
Creator:
Piotr Jaroszyński (RETIRED)
Created:
2006-10-23 05:47:55 UTC
Size:
1.73 KB
patch
obsolete
>--- cpufreqd-2.2.0-init.d.old 2006-10-23 01:14:03.000000000 +0200 >+++ cpufreqd-2.2.0-init.d 2006-10-23 13:20:47.000000000 +0200 >@@ -18,15 +18,14 @@ > > if [ ! -e /proc/cpufreq ] ; then > for cpu in /sys/devices/system/cpu/cpu[0-9]* ; do >- n=${cpu##*/} >- n=${n/cpu/} >- >- if [ ! -e /sys/devices/system/cpu/cpu${n}/cpufreq ] ; then >- eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" >- eerror "Make sure that the appropiate drivers for your CPU are available." >- return 1 >+ # We need just one cpu supporting cpu freq scaling. >+ if [ -e ${cpu}/cpufreq ] ; then >+ return 0 > fi > done >+ eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" >+ eerror "Make sure that the appropiate drivers for your CPU are available." >+ return 1 > fi > } > >--- cpufreqd-2.2.0-init.d.old 2006-10-23 01:14:03.000000000 +0200 >+++ cpufreqd-2.2.0-init.d 2006-10-23 14:45:40.000000000 +0200 >@@ -16,17 +16,14 @@ > return 1 > fi > >- if [ ! -e /proc/cpufreq ] ; then >+ if [[ ! -e /proc/cpufreq ]] ; then > for cpu in /sys/devices/system/cpu/cpu[0-9]* ; do >- n=${cpu##*/} >- n=${n/cpu/} >- >- if [ ! -e /sys/devices/system/cpu/cpu${n}/cpufreq ] ; then >- eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" >- eerror "Make sure that the appropiate drivers for your CPU are available." >- return 1 >- fi >+ # We need just one cpu supporting freq scaling. >+ [[ -e ${cpu}/cpufreq ]] && return 0 > done >+ eerror "cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ" >+ eerror "Make sure that the appropiate drivers for your CPU are available." >+ return 1 > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 152057
:
100103
|
100262
| 100269