On Thursday 25 November 2010 13:05:49 Vishwanath Sripathy wrote: > Thanks David. > If I would like to fine tune up_threshold and sampling_down_factor for > say OMAP platform, is there any way to do it in kernel itself? > I know these are configurable via sysfs entries. But if I want to > optimize them in kernel itself, is there anyway? I see that default > values are set in cpufreq-ondemand.c which is common kernel file. I > would like to know if these can be set in platform specific code? Ugly to do... This should be done global and not per cpu? If per_cpu it could be added to policy, simlar to latency: set in driver's init func, evaluated in governor later. Possibly if in cpufreq.h a struct: { unsigned int sampling_down_factor; ... } cpufreq_governor_hints; is added which gets filled by the platform driver in the .init func and then gets evaluated in the governor, but only once also at init time. Doing this when the governor is already active involves locking which must get avoided. Thomas -- To unsubscribe from this list: send the line "unsubscribe cpufreq" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html