cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

common.h (1360B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef __ARCH_MACH_COMMON_H
      3#define __ARCH_MACH_COMMON_H
      4
      5extern void shmobile_init_delay(void);
      6extern void shmobile_boot_vector(void);
      7extern unsigned long shmobile_boot_fn;
      8extern unsigned long shmobile_boot_size;
      9extern void shmobile_boot_vector_gen2(void);
     10extern unsigned long shmobile_boot_fn_gen2;
     11extern unsigned long shmobile_boot_cpu_gen2;
     12extern unsigned long shmobile_boot_size_gen2;
     13extern void shmobile_smp_boot(void);
     14extern void shmobile_smp_sleep(void);
     15extern void shmobile_smp_hook(unsigned int cpu, unsigned long fn,
     16			      unsigned long arg);
     17extern bool shmobile_smp_cpu_can_disable(unsigned int cpu);
     18extern void shmobile_boot_apmu(void);
     19extern void shmobile_boot_scu(void);
     20extern void shmobile_smp_scu_prepare_cpus(phys_addr_t scu_base_phys,
     21					  unsigned int max_cpus);
     22extern void shmobile_smp_scu_cpu_die(unsigned int cpu);
     23extern int shmobile_smp_scu_cpu_kill(unsigned int cpu);
     24extern struct platform_suspend_ops shmobile_suspend_ops;
     25
     26#ifdef CONFIG_SUSPEND
     27int shmobile_suspend_init(void);
     28void shmobile_smp_apmu_suspend_init(void);
     29#else
     30static inline int shmobile_suspend_init(void) { return 0; }
     31static inline void shmobile_smp_apmu_suspend_init(void) { }
     32#endif
     33
     34static inline void __init shmobile_init_late(void)
     35{
     36	shmobile_suspend_init();
     37}
     38
     39#endif /* __ARCH_MACH_COMMON_H */