]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/mach-shmobile/common.h
Merge branch 'upstream' of git://git.infradead.org/users/pcmoore/selinux into for...
[mirror_ubuntu-zesty-kernel.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;
7extern unsigned long shmobile_boot_arg;
a84a5ab7 8extern unsigned long shmobile_boot_size;
cc61591e
MD
9extern void shmobile_smp_boot(void);
10extern void shmobile_smp_sleep(void);
11extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
12 unsigned long arg);
787047ee 13extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
bfabbcc6 14extern void shmobile_boot_scu(void);
c970d4ef 15extern void shmobile_smp_scu_prepare_cpus(unsigned int max_cpus);
e7b1c963
MD
16extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
17extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
c3dada18 18extern struct platform_suspend_ops shmobile_suspend_ops;
e47bb515 19
21cc1b7e
SG
20#ifdef CONFIG_SUSPEND
21int shmobile_suspend_init(void);
d6d757c9 22void shmobile_smp_apmu_suspend_init(void);
21cc1b7e
SG
23#else
24static inline int shmobile_suspend_init(void) { return 0; }
ecdaca48 25static inline void shmobile_smp_apmu_suspend_init(void) { }
21cc1b7e
SG
26#endif
27
06e32c91
GI
28#ifdef CONFIG_CPU_FREQ
29int shmobile_cpufreq_init(void);
30#else
31static inline int shmobile_cpufreq_init(void) { return 0; }
32#endif
33
4c822845 34extern void __iomem *shmobile_scu_base;
a62580e5 35
b3796d92 36static inline void __init shmobile_init_late(void)
35f2b0bd
RW
37{
38 shmobile_suspend_init();
06e32c91 39 shmobile_cpufreq_init();
35f2b0bd
RW
40}
41
c793c1b0 42#endif /* __ARCH_MACH_COMMON_H */