OSDN Git Service

cpufreq: ppc: Add missing #include <asm/smp.h>
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 4 Mar 2015 11:56:20 +0000 (12:56 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 Mar 2015 13:14:54 +0000 (14:14 +0100)
commit5877b4f4677b66f92b5ed94491d69680d6eac4dc
tree8d70f1b579d9fc346142552b8c8603976bf939a5
parent13a7a6ac0a11197edcd0f756a035f472b42cdf8b
cpufreq: ppc: Add missing #include <asm/smp.h>

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>
drivers/cpufreq/ppc-corenet-cpufreq.c