powernv.h 454 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright 2017 IBM Corp.
  4. */
  5. #ifndef _ASM_POWERNV_H
  6. #define _ASM_POWERNV_H
  7. #ifdef CONFIG_PPC_POWERNV
  8. extern void powernv_set_nmmu_ptcr(unsigned long ptcr);
  9. void pnv_program_cpu_hotplug_lpcr(unsigned int cpu, u64 lpcr_val);
  10. void pnv_tm_init(void);
  11. #else
  12. static inline void powernv_set_nmmu_ptcr(unsigned long ptcr) { }
  13. static inline void pnv_tm_init(void) { }
  14. #endif
  15. #endif /* _ASM_POWERNV_H */