diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-01-09 21:02:50 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-01-13 09:43:57 +0530 |
commit | c8858f2e2768be94901696e5fc208efe9104b26e (patch) | |
tree | 4f2650392beba2f6446c782686ece70c59f7a63f /arch/arm/include/asm/pmu.h | |
parent | 52283ef705d795f3bbc50f8444c292e80364372e (diff) |
cpufreq: Simplify cpufreq_add_dev()
Currently cpufreq_add_dev() firsts allocates policy, calls driver->init() and
then checks if this cpu is already managed or not. And if it is already managed,
free its policy.
We can save all this if we somehow know cpu is managed or not in advance.
policy->related_cpus contains list of all valid sibling cpus of policy->cpu. We
can check this to know if current cpu is already managed.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/pmu.h')
0 files changed, 0 insertions, 0 deletions