Skip to content

Commit

Permalink
cpufreq: ppc: Add missing #include <asm/smp.h>
Browse files Browse the repository at this point in the history
If CONFIG_SMP=n, <linux/smp.h> does not include <asm/smp.h>, causing:

drivers/cpufreq/ppc-corenet-cpufreq.c: In function 'corenet_cpufreq_cpu_init':
drivers/cpufreq/ppc-corenet-cpufreq.c:173:3: error: implicit declaration of function 'get_hard_smp_processor_id' [-Werror=implicit-function-declaration]

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Geert Uytterhoeven authored and Rafael J. Wysocki committed Mar 4, 2015
1 parent 13a7a6a commit 5877b4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/cpufreq/ppc-corenet-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <linux/smp.h>
#include <sysdev/fsl_soc.h>

#include <asm/smp.h> /* for get_hard_smp_processor_id() in UP configs */

/**
* struct cpu_data - per CPU data struct
* @parent: the parent node of cpu clock
Expand Down

0 comments on commit 5877b4f

Please sign in to comment.