diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2007-07-18 06:40:13 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-07-20 12:25:20 -0400 |
commit | b750a09385d7c464113ae8915e63541a163fbac8 (patch) | |
tree | cf7204368ff629ff00cecdabe8bc0e2ba3a82c85 /include/asm-arm | |
parent | 711be5ccfe9a02ba560aa918a008c31ea4760163 (diff) |
[ARM] 4489/1: pxa: split pxa_cpu_suspend to processor specific ones
1. split pxa_cpu_suspend to pxa25x_cpu_suspend and pxa27x_cpu_suspend
and make pxa25x_cpu_pm_enter() and pxa27x_cpu_pm_enter() to invoke
the corresponding _suspend functions, thus remove all those ugly
#ifdef .. #endif out of sleep.S
2. move the declarations of those suspend functions to pm.h
note: this is not a clean enough solution until all the pxa25x and
pxa27x specific part is further removed out of sleep.S, sleep.S is
supposed to contain generic code only
Signed-off-by: eric miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/arch-pxa/pm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/pm.h b/include/asm-arm/arch-pxa/pm.h index 62b69004819d..6903db7fae15 100644 --- a/include/asm-arm/arch-pxa/pm.h +++ b/include/asm-arm/arch-pxa/pm.h | |||
@@ -17,4 +17,9 @@ struct pxa_cpu_pm_fns { | |||
17 | 17 | ||
18 | extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; | 18 | extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; |
19 | 19 | ||
20 | /* sleep.S */ | ||
21 | extern void pxa25x_cpu_suspend(unsigned int); | ||
22 | extern void pxa27x_cpu_suspend(unsigned int); | ||
23 | extern void pxa_cpu_resume(void); | ||
24 | |||
20 | extern int pxa_pm_enter(suspend_state_t state); | 25 | extern int pxa_pm_enter(suspend_state_t state); |