Re: how to get cpu_khz?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 17 Sep 2001 22:26:09 +0100 (BST)


> > calculated at boot time (that's where /proc/cpuinfo gets its data) and
> > that variable doesn't appear to be exported to the rest of the kernel,
> > either that or I'm just missing something, which I would rather be the
> > case at this point.
> >
>
> Ask Alan to export it by default. If no-go, export it in your
> configuration.

Processor speed from cpu_khz is not a constant, it varies per processor
on split multiplier SMP and it varies on certain kinds of power management.
For delays we have udelay(). That has a chance of supporting speed changes
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/