Messages in this thread | | | Date | Fri, 2 Dec 2005 19:19:27 +0100 | From | Andi Kleen <> | Subject | Re: [PATCH] CPU frequency display in /proc/cpuinfo |
| |
On Fri, Dec 02, 2005 at 10:13:31AM -0800, Pallipadi, Venkatesh wrote: > On x86_64: > There is one single variable cpu_khz that gets written by all the CPUs. So, > the frequency set by last CPU will be seen on /proc/cpuinfo of all the > CPUs in the system. What you see also depends on whether you have constant_tsc > capable CPU or not.
x86-64 part looks good. Thanks.
> /* query the current CPU frequency (in kHz). If zero, cpufreq couldn't detect it */ > unsigned int cpufreq_get(unsigned int cpu); > > +/* query the last known CPU freq (in kHz). If zero, cpufreq couldn't detect it */ > +#ifdef CONFIG_CPU_FREQ > +unsigned int cpufreq_quick_get(unsigned int cpu); > +#else > +unsigned int cpufreq_quick_get(unsigned int cpu) > +{ > + return 0; > +} > +#endif
Shouldn't this be a static inline?
-Andi - 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/
| |