android_kernel_motorola_sm6225/drivers/cpufreq
Viresh Kumar fcf8058296 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, its policy is freed.

We can save all this if we somehow know that CPU is managed or not in
advance.  policy->related_cpus contains the list of all valid sibling
CPUs of policy->cpu. We can check this to see if the current CPU is
already managed.

From now on, platforms don't really need to set related_cpus from
their init() routines, as the same work is done by core too.

If a platform driver needs to set the related_cpus mask with some
additional CPUs, other than CPUs present in policy->cpus, they are
free to do it, though, as we don't override anything.

[rjw: Changelog]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2013-02-02 00:01:16 +01:00
..
acpi-cpufreq.c acpi-cpufreq: Do not load on K8 2013-02-02 00:01:14 +01:00
cpufreq-cpu0.c cpufreq / highbank: add support for highbank cpufreq 2013-02-02 00:01:15 +01:00
cpufreq-nforce2.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
cpufreq.c cpufreq: Simplify cpufreq_add_dev() 2013-02-02 00:01:16 +01:00
cpufreq_conservative.c cpufreq: conservative: call dbs_check_cpu only when necessary 2013-02-02 00:01:13 +01:00
cpufreq_governor.c cpufreq: ondemand: call dbs_check_cpu only when necessary 2013-02-02 00:01:13 +01:00
cpufreq_governor.h cpufreq: ondemand: call dbs_check_cpu only when necessary 2013-02-02 00:01:13 +01:00
cpufreq_ondemand.c cpufreq: ondemand: use all CPUs in update_sampling_rate 2013-02-02 00:01:14 +01:00
cpufreq_performance.c cpufreq: Improve debug prints 2012-11-15 00:33:06 +01:00
cpufreq_powersave.c cpufreq: Improve debug prints 2012-11-15 00:33:06 +01:00
cpufreq_stats.c cpufreq: Simplify __cpufreq_remove_dev() 2013-02-02 00:01:14 +01:00
cpufreq_userspace.c cpufreq: Improve debug prints 2012-11-15 00:33:06 +01:00
db8500-cpufreq.c cpufreq: db8500: Use armss clk to update frequency 2012-11-09 16:47:07 -08:00
e_powersaver.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
elanfreq.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
exynos-cpufreq.c cpufreq: exynos: Use static for functions used in only this file 2012-11-22 00:19:25 +01:00
exynos4x12-cpufreq.c EXYNOS4X12: Add support cpufreq for EXYNOS4X12 2012-03-14 14:39:47 -04:00
exynos4210-cpufreq.c [CPUFREQ] EXYNOS4210: update the name of EXYNOS clock register 2012-02-29 22:24:38 -05:00
exynos5250-cpufreq.c [CPUFREQ] EXYNOS5250: Add support max 1.7GHz for EXYNOS5250 2012-07-19 13:20:25 +09:00
freq_table.c cpufreq: Simplify __cpufreq_remove_dev() 2013-02-02 00:01:14 +01:00
gx-suspmod.c cpufreq/gx: Fix the compile error 2012-02-02 15:32:12 -08:00
highbank-cpufreq.c cpufreq / highbank: add support for highbank cpufreq 2013-02-02 00:01:15 +01:00
Kconfig cpufreq / governor: Fix problem with cpufreq_ondemand or cpufreq_conservative 2013-01-03 13:11:19 +01:00
Kconfig.arm cpufreq / highbank: add support for highbank cpufreq 2013-02-02 00:01:15 +01:00
Kconfig.powerpc powerpc/cpufreq: Add cpufreq driver for Momentum Maple boards 2011-07-19 15:13:04 +10:00
Kconfig.x86 powernow-k8: Add a kconfig dependency on acpi-cpufreq 2013-01-18 13:43:44 +01:00
longhaul.c cpufreq / Longhaul: Disable driver by default 2013-01-03 13:11:18 +01:00
longhaul.h sections: fix section conflicts in drivers/cpufreq 2012-09-14 21:10:46 +02:00
longrun.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
Makefile cpufreq / highbank: add support for highbank cpufreq 2013-02-02 00:01:15 +01:00
maple-cpufreq.c powerpc/cpufreq: Add cpufreq driver for Momentum Maple boards 2011-07-19 15:13:04 +10:00
mperf.c [CPUFREQ] Move x86 drivers to drivers/cpufreq/ 2011-05-19 18:51:07 -04:00
mperf.h [CPUFREQ] Move x86 drivers to drivers/cpufreq/ 2011-05-19 18:51:07 -04:00
omap-cpufreq.c cpufreq: OMAP: use RCU locks around usage of OPP 2013-01-22 13:28:39 +01:00
p4-clockmod.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
pcc-cpufreq.c drivers/cpufreq/pcc-cpufreq.c: fix error return code 2012-08-08 20:49:25 +02:00
powernow-k6.c powernow-k6: Really enable auto-loading 2012-02-13 15:26:03 -08:00
powernow-k7.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
powernow-k7.h [CPUFREQ] Move x86 drivers to drivers/cpufreq/ 2011-05-19 18:51:07 -04:00
powernow-k8.c powernow-k8: Cleanup init function 2013-02-02 00:01:15 +01:00
powernow-k8.h cpufreq: Remove support for hardware P-state chips from powernow-k8 2012-09-09 22:05:30 +02:00
s3c64xx-cpufreq.c [CPUFREQ] s3c64xx: Fix mis-cherry pick of VDDINT 2012-02-29 22:24:38 -05:00
s3c2416-cpufreq.c cpufreq: Fix typo in cpufreq driver 2012-07-20 10:37:40 +02:00
s5pv210-cpufreq.c [CPUFREQ] s5pv210: make needlessly global symbols static 2011-07-13 18:30:00 -04:00
sc520_freq.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
spear-cpufreq.c cpufreq: Simplify cpufreq_add_dev() 2013-02-02 00:01:16 +01:00
speedstep-centrino.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
speedstep-ich.c cpufreq: Fix typo in cpufreq driver 2012-07-20 10:37:40 +02:00
speedstep-lib.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00
speedstep-lib.h [CPUFREQ] Move x86 drivers to drivers/cpufreq/ 2011-05-19 18:51:07 -04:00
speedstep-smi.c cpufreq: Add support for x86 cpuinfo auto loading v4 2012-01-26 16:49:06 -08:00