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

powernv.h (454B)


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