hi ,
I checked the scaling_available_frequencies in the cpu0/cpufreq/ folder.
Its showing only two values available.
Can anyone please help me to have more intermediate values for scaling?
My real requirement is , i have a temperature sensor for the board, and based on the reading from this, i want to change the frequency scaling to different values.
But currently the scaling_available_frequencies are 396MHz and 792 MHz. but i need more frequencies which i can use.
Regards
juvin
Juvin,
This ia avaliable working point(wp) dump.
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
396000 792000 996000
The DFVS will adjust the frequency automatically, if the govenor is such as interactive, ondemand.
It is assoicated with the thermal, system loading etc. and adjust automatically.
If you want to add more working point(wp), it is part of linux.
You can add as you like and need to test if the power supply is correct for the working point(wp) you add.
hello Sun,
you have mentioned that the ondemand and interactive governors is already associated with "thermal". is it possible to associate the readings from a temperature sensor i have on my device with the governor?
Regards
jvn
Hi jvn,
I don't know which version you are using.
The thermal drive is in the driver/thermal
As other driver, linux just ask you to implement its ops.
It doesn't matter, it is from dia thermal, or the external thermal.
static const struct thermal_zone_device_ops imx_tz_ops = {
.bind = imx_bind,
.unbind = imx_unbind,
.get_temp = imx_get_temp,
.get_mode = imx_get_mode,
.set_mode = imx_set_mode,
.get_trip_type = imx_get_trip_type,
.get_trip_temp = imx_get_trip_temp,
.get_crit_temp = imx_get_crit_temp,
.get_trend = imx_get_trend,
.set_trip_temp = imx_set_trip_temp,
};
hello Sun,
we have a temperature sensor of chipset tmp103 and our driver is in drivers/hwmon/
can i link the reading of this sensor to the governor? so that the scaling is handled based on those reading?
From the linux layer. It doesn't know the hardware.
It uses a virtual thermal, which should provide the static const struct thermal_zone_device_ops imx_tz_ops.
tmp103 need to do the same thing as i.MX6 on-dia thermal.
i added my own android service to monitor the temperature and if the temperature rises i bring the cpu to powersave governor :smileyhappy: