On 4 February 2015 at 03:52, Saravana Kannan skannan@codeaurora.org wrote:
Could you "export" this macro/list so that it's usable by other clients of cpufreq too? If a driver wants to examine all the policies today, it has to do "for_each_cpu" and then try to get the policy for each CPU. This seems nicer.
I would wait for such requests to come, it wouldn't be difficult to move these to cpufreq.h .. Do you have some users in mind ?
Also, exposing the cpufreq-locks wouldn't be a good idea and accessing these macro's without them might result in crash, in case there are updates at the same time..
So, its a bit tricky I would say.