I'm working on a FreeBSD project where I need to maintain the temperature of the processor below a threshold value. In order to reduce the temperature I'm trying to dynamically change the frequency of the processor.
I've used the following command to set the highest frequency of the processor.
sysctl debug.cpufreq.highest=value (in MHz)
But the change is not happening instantly. I've tried many times and it took random amount of time for changes to take effect. Why is it so?