Hi everyone,
I am trying to write a program in C that can perform dynamic heat control for Pentium M (banias) through frequency scaling.
I was supposed to use an API that someone already wrote, however it appears that his API is useless (and that's an understatement

).
Anyhow, in order to implement my program I will need to get a temp reading from the CPU and to adjust the CPU frequency (on the fly) based on that reading.
I was given to understand that Linux already has support for these option built in. Is there an API for C for these functions?
P.S.
I am kind of new to Linux (have just started using it for this project) so please try to form you answer accordingly.
Any help will be appreciated!