On 25 September 2013 20:32, Daniel Lezcano daniel.lezcano@linaro.org wrote:
Where is it wrong in design ? If the multiple driver support is enabled in the kernel but the driver handles all the cpu, it works.
Yeah It works but I don't really support two separate code paths based on how kernel is compiled.. For example: Consider any ARM system which doesn't need multiple drivers support and so must be using the non-per-cpu variable for holding drivers pointer..
Now the same driver is included as part of a multiplatform kernel and now the same driver/platform is using the per-cpu variables for storing driver pointer.. Even sysfs will have files with name "driver" to print drivers name for CPUs..
I know it doesn't break anything but it didn't looked good design wise to me..