[PATCH 02/10] cpufreq: OMAP: Add SMP support for OMAP4+

Kevin Hilman khilman at ti.com
Thu Sep 22 19:11:38 EDT 2011


Kevin Hilman <khilman at ti.com> writes:

> From: Russell King <rmk+kernel at arm.linux.org.uk>
>
> On OMAP SMP configuartion, both processors share the voltage
> and clock. So both CPUs needs to be scaled together and hence
> needs software co-ordination.

[...]

> diff --git a/drivers/cpufreq/omap-cpufreq.c b/drivers/cpufreq/omap-cpufreq.c
> index a6b2be7..f9b4c4d 100644
> --- a/drivers/cpufreq/omap-cpufreq.c
> +++ b/drivers/cpufreq/omap-cpufreq.c
> @@ -23,6 +23,7 @@
>  #include <linux/clk.h>
>  #include <linux/io.h>
>  #include <linux/opp.h>
> +#include <linux/cpu.h>
>  
>  #include <asm/system.h>
>  #include <asm/smp_plat.h>

Thanks to checkpatch, I blindly removed an "#include <asm/cpu.h>" here
without re-testing.  Turns out it was important.

Added it back, and updated the version available in my
for_3.2/omap-cpufreq branch.

Kevin



More information about the linux-arm-kernel mailing list