common.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __ARCH_MACH_COMMON_H
  2. #define __ARCH_MACH_COMMON_H
  3. extern void shmobile_init_delay(void);
  4. extern void shmobile_boot_vector(void);
  5. extern unsigned long shmobile_boot_fn;
  6. extern unsigned long shmobile_boot_size;
  7. extern void shmobile_smp_boot(void);
  8. extern void shmobile_smp_sleep(void);
  9. extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
  10. unsigned long arg);
  11. extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
  12. extern bool shmobile_smp_init_fallback_ops(void);
  13. extern void shmobile_boot_scu(void);
  14. extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
  15. unsigned int max_cpus);
  16. extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
  17. extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
  18. extern struct platform_suspend_ops shmobile_suspend_ops;
  19. #ifdef CONFIG_SUSPEND
  20. int shmobile_suspend_init(void);
  21. void shmobile_smp_apmu_suspend_init(void);
  22. #else
  23. static inline int shmobile_suspend_init(void) { return 0; }
  24. static inline void shmobile_smp_apmu_suspend_init(void) { }
  25. #endif
  26. static inline void __init shmobile_init_late(void)
  27. {
  28. shmobile_suspend_init();
  29. }
  30. #endif /* __ARCH_MACH_COMMON_H */