Where is cpufreq.h ?

Hi
That is bad advice!!!

The correct file is in the package, but has been
disabled unless someone adds the devel package back in, this would only
happen either via a bug or openFATE request.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.4 (x86_64) Kernel 2.6.37.1-1.2-desktop
up 2 days 19:20, 5 users, load average: 0.48, 0.33, 0.19
GPU GeForce 8600 GTS Silent - Driver Version: 270.41.06

I mean this to install

You can install this library(because it is a library written in C)

su

If you have 32 bit system

# zypper install cpufrequtils-008-19.1.i586.rpm

or if you have 64 bit system

# zypper install cpufrequtils-bench-006-4.1.x86_64.rpm

The correct file is in the package, but has been
disabled unless someone adds the devel package back in, this would only
happen either via a bug or openFATE request.

Mmmm. That’s I mean with try to install. This RPM cpufrequtils includes this file who threader wants cpufreq.h.

< sigh >

stamostolias, can you please explain why you believe to install cpufrequtils and cpufrequtils-bench ? Is it because you believe cpufreq.h is DIRECTLY inside those rpms ? If so, why do you believe that? What is the basis for that assumption ? Is it strictly the rpm name that leads you to believe that ?

Did you check the contents of those rpms ?

So, I downloaded cpufrequtils-008-5.1.x86_64.rpm and cpufrequtils-bench-008-5.1.x86_64.rpm and I looked inside those files. Did you do that ? If not, why not ?

Note the command:

rpm -qip cpufrequtils-008-5.1.x86_64.rpm -l 

provides the following list of installed files inside cpufrequtils:


Distribution: openSUSE 11.4
/usr/bin/cpufreq-aperf
/usr/bin/cpufreq-info
/usr/bin/cpufreq-set
/usr/lib64/libcpufreq.so.0
/usr/lib64/libcpufreq.so.0.0.0
/usr/sbin/turbostat
/usr/share/locale/cs/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/de/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/fr/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/it/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/pt/LC_MESSAGES/cpufrequtils.mo
/usr/share/man/man1/cpufreq-info.1.gz
/usr/share/man/man1/cpufreq-set.1.gz
/usr/share/man/man8/turbostat.8.gz

so CLEARLY there is no cpufreq.h included.

Note the command

rpm -qip cpufrequtils-bench-008-5.1.x86_64.rpm -l 

provides the following list of files included inside cpufrequtils-bench:


/etc/cpufreq-bench.conf
/usr/bin/cpufreq-bench_plot.sh
/usr/sbin/cpufreq-bench
/usr/share/doc/packages/cpufrequtils
/usr/share/doc/packages/cpufrequtils/README-BENCH
/usr/share/doc/packages/cpufrequtils/examples
/usr/share/doc/packages/cpufrequtils/examples/cpufreq-bench_script.sh
/usr/share/locale/cs/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/de/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/fr/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/it/LC_MESSAGES/cpufrequtils.mo
/usr/share/locale/pt/LC_MESSAGES/cpufrequtils.mo

so CLEARLY there is no cpufreq.h included.

So PLEASE explain one more time why you believe those files should be installed. There may be reason, and if here is, I am eager to learn. But if I read your post, you stated it was to obtain cpufreq.h, and I confess I am highly suspicious you simply do not know what you are recommending.

stamostolias, PLEASE I want you to do me a BIG favour. PLEASE do NOT post IN ANY THREAD if you do not know the answer, and if you think you know the answer, please TRIPLE check your answer BEFORE you post. If you can not check, then do NOT post. OK ?

Thankyou.



stamos@linux-jiza:~> locate cpufreq.h
/usr/src/linux-2.6.37.1-1.2-obj/i386/default/include/config/x86/acpi/cpufreq.h
/usr/src/linux-2.6.37.1-1.2-obj/i386/default/include/config/x86/pcc/cpufreq.h
/usr/src/linux-2.6.37.1-1.2-obj/i386/desktop/include/config/x86/acpi/cpufreq.h
/usr/src/linux-2.6.37.1-1.2-obj/i386/pae/include/config/x86/acpi/cpufreq.h
/usr/src/linux-2.6.37.1-1.2-obj/i386/pae/include/config/x86/pcc/cpufreq.h
/usr/src/linux-2.6.37.1-1.2/arch/arm/mach-davinci/include/mach/cpufreq.h
/usr/src/linux-2.6.37.1-1.2/arch/powerpc/platforms/cell/cbe_cpufreq.h
/usr/src/linux-2.6.37.1-1.2/include/linux/cpufreq.h

So what? That has NOTHING to do with your recommendation to install cpufrequtils-008-5.1.x86_64.rpm and cpufrequtils-bench-008-5.1.x86_64.rpm.

So I ask you again, and PLEASE answer my question. WHY are you recommending to install cpufrequtils-008-5.1.x86_64.rpm and cpufrequtils-bench-008-5.1.x86_64.rpm ?

Because as I check I have found it.
If he wants to install it let’s install it. i do not continue to give help with this awful climate. I will continue to give help in my sub forum and in my group. Enough. I try to help and you criticize me awful.

stamostolias. Yes. Please leave this thread. I will PM you about your non-explained advice to install that software.

stamostolias > clearly there is a misunderstanding with you. Anyway, i tell you efraristo i kali nichta :o)

malcolmlewis > thanks but i’m the only who needs it and my hack is faster than disturbing the suse devs …

Tell me nothing your problem was not solved.

Telos pantwn, even my solution is not perfect, i thank you for tryong to help.

Please_try_again, thank you for your post in this thread.

To try to add some clarity to this thread for those who do not know (what I know you know), for those of us who have kernel-devel installed, if one types: rpm -qf /usr/src/linux-2.6.37.1-1.2.2/include/linux/cpufreq.h one will get:

kernel-devel-2.6.37.1-1.2.2.noarch 

which is what you were noting. ie cpufreq.h comes with the rpm kernel-devel.

Whether or not the version of cpufreq.h in that rpm is the version being looked for by the OP is another question.