From patchwork Tue Aug 7 08:43:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/4] cpu: export cpu hotplug disable/enable functions as global functions From: chenhui zhao X-Patchwork-Id: 175537 Message-Id: <1344329006-10645-3-git-send-email-chenhui.zhao@freescale.com> To: , Cc: linux-kernel@vger.kernel.org Date: Tue, 7 Aug 2012 16:43:25 +0800 The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. Therefore, the related functions should be exported. Signed-off-by: Zhao Chenhui --- include/linux/cpu.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/linux/cpu.h b/include/linux/cpu.h index ce7a074..df8f73d 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -146,6 +146,8 @@ void notify_cpu_starting(unsigned int cpu); extern void cpu_maps_update_begin(void); extern void cpu_maps_update_done(void); +extern void cpu_hotplug_disable_before_freeze(void); +extern void cpu_hotplug_enable_after_thaw(void); #else /* CONFIG_SMP */ #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) @@ -167,6 +169,8 @@ static inline void cpu_maps_update_done(void) { } +static inline void cpu_hotplug_disable_before_freeze(void) {} +static inline void cpu_hotplug_enable_after_thaw(void) {} #endif /* CONFIG_SMP */ extern struct bus_type cpu_subsys;