Re: How to get CPU frequency range at early boot time?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/24/05, Thorsten Moellers <kernelliste@xxxxxxxxxxx> wrote:
> Hi, all!
> I'm working on a DVS scheduling algorithm. To initialize the scheduler,
> I need to get the maximum available CPU frequency as early as possible.
> Since the scheduler is not only for DVS relevant but also for fixed
> frequency desktop systems, it would be great to get the information
> withouth utilizing the cpufreq module. Is there a source for that
> information?

What does /proc/cpuinfo do to get the information it outputs? I'm
assuming you could do something similar (might be as little as
querying the CPU during boot, but I have no idea). Are you asking if
this is possible in userspace or kernelspace? It's a bit hard to tell
from your mail.

> (The macro HZ delivers AFAIK the current frequency, which is not what I
> want.)

HZ has nothing to do with the CPU frequency; it's an approximation of
what frequency the timer interrupt was programmed to fire at (ACTHZ,
in the kernel, is a more precise value, but not used anywhere except
in manipulating the timer interrupt source).

Thanks,
Nish

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux