On Tue, Feb 05, 2013 at 12:50:31PM +0530, Viresh Kumar wrote:
I think this is cleaner but whatever - I don't care that much. My only strong concern is that this thing should be a Kconfig option and optional for arches where it doesn't apply.
Your concern is: we don't want to fix userspace for existing platforms where we have just a single cluster and so struct policy in the system.
No, as I said so many times already and you're unwilling to understand it: multiple policies support in cpufreq should be optional and selectable in Kconfig so that systems which don't need that, don't have to see or use it. It is yet another feature which doesn't apply universally so we make such features optional. Like the rest of the gazillion things in the kernel already.
The existing sysfs layout cannot be changed because you're breaking userspace and we don't do that. It is that simple.
Concerning adding new sysfs entries, I told you to make it as easy as possible and as sensible as possible, dictated by the use cases. If you can't come up with some, then talk to the people who are going to use your design and ask them what makes sense the most.
*Then* write the code.