Merge branch 'pm-cpufreq'
[linux-2.6-block.git] / arch / arm / mach-shmobile / common.h
CommitLineData
c793c1b0
MD
1#ifndef __ARCH_MACH_COMMON_H
2#define __ARCH_MACH_COMMON_H
3
c39dae38 4extern void shmobile_init_delay(void);
ebe72ab9
MD
5extern void shmobile_boot_vector(void);
6extern unsigned long shmobile_boot_fn;
a84a5ab7 7extern unsigned long shmobile_boot_size;
cc61591e
MD
8extern void shmobile_smp_boot(void);
9extern void shmobile_smp_sleep(void);
10extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
11 unsigned long arg);
787047ee 12extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
bfabbcc6 13extern void shmobile_boot_scu(void);
c970d4ef 14extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
e7b1c963
MD
15extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
16extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
c3dada18 17extern struct platform_suspend_ops shmobile_suspend_ops;
e47bb515 18
21cc1b7e
SG
19#ifdef CONFIG_SUSPEND
20int shmobile_suspend_init(void);
d6d757c9 21void shmobile_smp_apmu_suspend_init(void);
21cc1b7e
SG
22#else
23static inline int shmobile_suspend_init(void) { return 0; }
ecdaca48 24static inline void shmobile_smp_apmu_suspend_init(void) { }
21cc1b7e
SG
25#endif
26
06e32c91
GI
27#ifdef CONFIG_CPU_FREQ
28int shmobile_cpufreq_init(void);
29#else
30static inline int shmobile_cpufreq_init(void) { return 0; }
31#endif
32
4c822845 33extern void __iomem *shmobile_scu_base;
a62580e5 34
b3796d92 35static inline void __init shmobile_init_late(void)
35f2b0bd
RW
36{
37 shmobile_suspend_init();
06e32c91 38 shmobile_cpufreq_init();
35f2b0bd
RW
39}
40
c793c1b0 41#endif /* __ARCH_MACH_COMMON_H */