Sponsored Content
Top Forums UNIX for Advanced & Expert Users Problem loading cpufreq module Post 302546242 by vishwamitra on Wednesday 10th of August 2011 08:00:41 PM
Old 08-10-2011
Problem loading cpufreq module

I'd like to install cpufreq modules on my server .
I tried

Code:
    sudo modprobe acpi-cpufreq

but got the error

Code:
    FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.18-238.12.1.el5xen/kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko): No such device

Code:
cat /proc/cpuinfo gives this

    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 15
    model           : 6
    model name      :               Intel(R) Pentium(R) D CPU 3.20GHz
    stepping        : 4
    cpu MHz         : 3200.542
    cache size      : 2048 KB
    physical id     : 0
    siblings        : 1
    core id         : 0
    cpu cores       : 1
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 6
    wp              : yes
    flags           : fpu tsc msr pae cx8 apic mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni vmx est cid cx16 lahf_lm
    bogomips        : 8005.14
    clflush size    : 64
    cache_alignment : 128
    address sizes   : 36 bits physical, 48 bits virtual
    power management:
    
    processor       : 1
    vendor_id       : GenuineIntel
    cpu family      : 15
    model           : 6
    model name      :               Intel(R) Pentium(R) D CPU 3.20GHz
    stepping        : 4
    cpu MHz         : 3200.542
    cache size      : 2048 KB
    physical id     : 1
    siblings        : 1
    core id         : 0
    cpu cores       : 1
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 6
    wp              : yes
    flags           : fpu tsc msr pae cx8 apic mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni vmx est cid cx16 lahf_lm
    bogomips        : 8005.14
    clflush size    : 64
    cache_alignment : 128
    address sizes   : 36 bits physical, 48 bits virtual
    power management:

And uname -r gives `2.6.18-238.12.1.el5xen`

ls /lib/modules/2.6.18-238.12.1.el5xen/kernel/arch/x86_64/kernel/cpufreq/
gives

acpi-cpufreq.ko mperf.ko powernow-k8.ko speedstep-centrino.ko

Do I have everything required to install cpufreq ?
Is my system compatible to have cpufreq ?
If yes, what steps sshould I follow to install cpufreq ?

When I entered BIOS settings, I was not able to view option to change CPU performance settings either.

Kindly tell me what to do.

Last edited by DukeNuke2; 08-11-2011 at 03:22 AM..
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

loading problem in XP help!!!!!!!!!!!

have a azuse mother borad 1600Mhz ram 512 hd 40gb will not install windows want to finish but will not take it! Is this a hard ware problem or a virus i use av norton 2002 and nod32 think got a virus not shure xp will not load any more (2 Replies)
Discussion started by: amicrawler2000
2 Replies

2. Programming

Dynamically loading a module

Hi there: Thanks for clicking in first. I have a question here. I have a module that needs to be dynamically loaded when another piece of code needs it at runtime. I know that I will have to make a soname file before I can use it dynamically. My question is what commad I should use to make... (2 Replies)
Discussion started by: yanhu
2 Replies

3. Shell Programming and Scripting

Problem of Data Loading....

i am studying a script which is used for data loading. it has functions which deletes all the existing data before loading and then loads new fresh data. but i am stuck up at function Replace into table ( col 1,col 2....) Does this signify All Inserts. (1 Reply)
Discussion started by: ankitgupta
1 Replies

4. UNIX for Dummies Questions & Answers

LPAR Loading Problem

I'm having a major problem trying to load a LPAR. I've got through the HMC and shutdown and then activated the LPAR and it only gets to the Operator Panel Value of 0517. Now from some research I've found that this is to do with loading the rootvg. ( I think ) On the actual terminal all I get is... (0 Replies)
Discussion started by: KeesH
0 Replies

5. Solaris

Application Loading problem

I install a software xchm for opening chm files. I install software and also its required libraries. But when i start it; no GUI appears. Application got halt. Process name also appears in process list when i run top command. Appliation continously using cpu but no GUI appears. Please tell me... (7 Replies)
Discussion started by: mansoorulhaq
7 Replies

6. UNIX for Advanced & Expert Users

OpenBoot Loading Problem

I am using a SunBlade 100 system and accidently set a new alias for keyboard, now when it start it gives the following error, The selected input device has no read routine. Keyboard not present using ttya for input and output. Now i cannot execute any commands on the OBP and i just gets... (3 Replies)
Discussion started by: sumwhriblong
3 Replies

7. Linux

problem with kernel module loading

Hi masters, I am new to linux and unix forum and this is my first forum. So please excuse if I am not giving sufficient information. I will give them on request. I have created a bandwidth manager module. I am using a 2.6.9 kernel and in Red Hat 3.4.3 distribution. But when i run make... (1 Reply)
Discussion started by: iamjayanth
1 Replies

8. Shell Programming and Scripting

Perl - Error loading module.

Hi, I have a strange issue in my script. When script is run from command prompt it runs fine,but when run from cron it exist with error message. I narrowed down the issue and found that " use Mail::Sender;" is the culprit. If I comment the statment the code runs fine in both command and... (9 Replies)
Discussion started by: coolbhai
9 Replies

9. Solaris

Loading Kernel module at boot

Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies

10. Fedora

Nvidia Module Not Loading (Desktop Gone)

Well, I followed the steps in the Debian wiki here to install the drivers for the following video card: $ lspci | grep VGA 03:00.0 VGA compatible controller: NVIDIA Corporation GF104 (rev a1)I confirmed the correct driver is installed. As you probably see I've tried this a few times and a few... (1 Reply)
Discussion started by: Azrael
1 Replies
CPUFREQ(9)						   BSD Kernel Developer's Manual						CPUFREQ(9)

NAME
cpufreq, cpufreq_register, cpufreq_deregister, cpufreq_suspend, cpufreq_resume, cpufreq_get, cpufreq_get_backend, cpufreq_get_state, cpufreq_get_state_index, cpufreq_set, cpufreq_set_all -- interface for CPU frequency scaling SYNOPSIS
#include <sys/cpufreq.h> int cpufreq_register(struct cpufreq *cf); void cpufreq_deregister(void); void cpufreq_suspend(struct cpu_info *ci); void cpufreq_resume(struct cpu_info *ci); uint32_t cpufreq_get(struct cpu_info *ci); int cpufreq_get_backend(struct cpufreq *cf); int cpufreq_get_state(uint32_t freq, struct cpufreq_state *cfs); int cpufreq_get_state_index(uint32_t index, struct cpufreq_state *cfs); void cpufreq_set(struct cpu_info *ci, uint32_t freq); void cpufreq_set_all(uint32_t freq); DESCRIPTION
The machine-independent cpufreq interface provides a framework for CPU frequency scaling done by a machine-dependent backend implementation. User space control is available via cpuctl(8). The cpufreq interface is a per-CPU framework. It is implicitly assumed that the frequency can be set independently for all processors in the system. However, cpufreq does not imply any restrictions upon whether this information is utilized by the actual machine-dependent implemen- tation. It is possible to use cpufreq with frequency scaling implemented via pci(4). In addition, it assumed that the available frequency levels are shared uniformly by all processors in the system, even when it is possible to control the frequency of individual processors. It should be noted that the cpufreq interface is generally stateless. This implies for instance that possible caching should be done in the machine-dependent backend. The cpufreq_suspend() and cpufreq_resume() functions are exceptions. These can be integrated with pmf(9). FUNCTIONS
cpufreq_register(cf) The cpufreq_register() function initializes the interface by associating a machine-dependent backend with the framework. Only one backend can be registered. Upon successful completion, cpufreq_register() returns 0 and sets the frequency of all processors to the maximum available level. Note that the registration can be done only after interrupts have been enabled; cf. config_interrupts(9). The following elements in struct cpufreq should be filled prior to the call: char cf_name[CPUFREQ_NAME_MAX]; struct cpufreq_state cf_state[CPUFREQ_STATE_MAX]; uint32_t cf_state_count; bool cf_mp; void *cf_cookie; xcfunc_t cf_get_freq; xcfunc_t cf_set_freq; o The name of the backend should be given in cf_name. o The cpufreq_state structure conveys descriptive information about the frequency states. The following fields can be used for the registration: uint32_t cfs_freq; uint32_t cfs_power; From these cfs_freq (the clock frequency in MHz) is mandatory, whereas the optional cfs_power can be filled to describe the power consumption (in mW) of each state. The cf_state array must be filled in descending order, that is, the highest frequency should be at the zero index. If the backend operates with a simple boolean switch without knowing the clock frequencies, the cfs_freq field should be set to CPUFREQ_STATE_ENABLED or CPUFREQ_STATE_DISABLED. The first constant should precede the latter one in cf_state. o The cf_state_count field defines the number of states that the backend has filled in the cf_state array. o The cf_mp boolean should be set to false if it is known that the backend can not handle per-CPU frequency states; changes should always be propagated to all processors in the system. o The cf_cookie field is an opaque pointer passed to the backend when cpufreq_get(), cpufreq_set(), or cpufreq_set_all() is called. o The cf_get_freq and cf_set_freq are function pointers that should be associated with the machine-dependent functions to get and set a frequency, respectively. The xcfunc_t type is part of xcall(9). When the function pointers are invoked by cpufreq, the first parameter is always the cf_cookie and the second parameter is the frequency, defined as uint32_t *. cpufreq_deregister() Deregisters any possible backend in use. cpufreq_suspend(ci) The cpufreq_suspend() can be called when the processor suspends. The function saves the current frequency of ci and sets the mini- mum available frequency. cpufreq_resume(ci) Resumes the frequency of ci that was used before suspend. cpufreq_get(ci) Returns the current frequency of the processor ci. A value zero is returned upon failure. cpufreq_get_backend(cf) Upon successful completion, cpufreq_get_backend() returns 0 and fills cf with the data related to the currently used backend. cpufreq_get_state(freq, cfs) The cpufreq_get_state() function looks for the given frequency from the array of known frequency states. If freq is not found, the closest match is returned. Upon successful completion, the function returns zero and stores the state information to cfs. cpufreq_get_state_index(index, cfs) Stores the frequency state with the given index to cfs, returning zero upon successful completion. cpufreq_set(ci, freq) The cpufreq_set() function sets the frequency of ci to freq. cpufreq_set_all(freq) Sets freq for all processors in the system. The three functions cpufreq_get(), cpufreq_set(), and cpufreq_set_all() guarantee that the call will be made in curcpu(9). The interface holds a mutex(9) while calling the functions. This, and the use of xcall(9), implies that no memory can be allocated in the backend during the calls. Nor should the functions be called from interrupt context. CODE REFERENCES
The cpufreq interface is implemented within sys/kern/subr_cpufreq.c. SEE ALSO
cpuctl(8), pmf(9), xcall(9) Venkatesh Pallipadi and Alexey Starikovskiy, The Ondemand Governor. Past, Present, and Future, Intel Open Source Technology Center, http://www.kernel.org/doc/ols/2006/ols2006v2-pages-223-238.pdf, July, 2006, Proceedings of the Linux Symposium. HISTORY
The cpufreq interface first appeared in NetBSD 6.0. AUTHORS
Jukka Ruohonen <jruohonen@iki.fi> BUGS
The interface does not support different ``governors'' and policies. BSD
October 27, 2011 BSD
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy