Commit 8ea875e7 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Jason Cooper

ARM: mvebu: export PMSU idle enter/exit functions

The PMSU idle enter/exit functions will be needed for the CPU hotplug
implementation on Armada XP, so this commit removes their static
qualifier, and adds the appropriate prototypes in armada-370-xp.h.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1401481098-23326-4-git-send-email-thomas.petazzoni@free-electrons.comSigned-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent bbb92284
...@@ -24,4 +24,7 @@ void armada_xp_secondary_startup(void); ...@@ -24,4 +24,7 @@ void armada_xp_secondary_startup(void);
extern struct smp_operations armada_xp_smp_ops; extern struct smp_operations armada_xp_smp_ops;
#endif #endif
int armada_370_xp_pmsu_idle_enter(unsigned long deepidle);
void armada_370_xp_pmsu_idle_exit(void);
#endif /* __MACH_ARMADA_370_XP_H */ #endif /* __MACH_ARMADA_370_XP_H */
...@@ -148,7 +148,7 @@ static void armada_370_xp_cpu_resume(void) ...@@ -148,7 +148,7 @@ static void armada_370_xp_cpu_resume(void)
} }
/* No locking is needed because we only access per-CPU registers */ /* No locking is needed because we only access per-CPU registers */
static int armada_370_xp_pmsu_idle_enter(unsigned long deepidle) int armada_370_xp_pmsu_idle_enter(unsigned long deepidle)
{ {
unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); unsigned int hw_cpu = cpu_logical_map(smp_processor_id());
u32 reg; u32 reg;
...@@ -219,7 +219,7 @@ static int armada_370_xp_cpu_suspend(unsigned long deepidle) ...@@ -219,7 +219,7 @@ static int armada_370_xp_cpu_suspend(unsigned long deepidle)
} }
/* No locking is needed because we only access per-CPU registers */ /* No locking is needed because we only access per-CPU registers */
static void armada_370_xp_pmsu_idle_exit(void) void armada_370_xp_pmsu_idle_exit(void)
{ {
unsigned int hw_cpu = cpu_logical_map(smp_processor_id()); unsigned int hw_cpu = cpu_logical_map(smp_processor_id());
u32 reg; u32 reg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment