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

intel_pxp_pm.h (823B)


      1/* SPDX-License-Identifier: MIT */
      2/*
      3 * Copyright(c) 2020, Intel Corporation. All rights reserved.
      4 */
      5
      6#ifndef __INTEL_PXP_PM_H__
      7#define __INTEL_PXP_PM_H__
      8
      9struct intel_pxp;
     10
     11#ifdef CONFIG_DRM_I915_PXP
     12void intel_pxp_suspend_prepare(struct intel_pxp *pxp);
     13void intel_pxp_suspend(struct intel_pxp *pxp);
     14void intel_pxp_resume(struct intel_pxp *pxp);
     15void intel_pxp_runtime_suspend(struct intel_pxp *pxp);
     16#else
     17static inline void intel_pxp_suspend_prepare(struct intel_pxp *pxp)
     18{
     19}
     20
     21static inline void intel_pxp_suspend(struct intel_pxp *pxp)
     22{
     23}
     24
     25static inline void intel_pxp_resume(struct intel_pxp *pxp)
     26{
     27}
     28
     29static inline void intel_pxp_runtime_suspend(struct intel_pxp *pxp)
     30{
     31}
     32#endif
     33static inline void intel_pxp_runtime_resume(struct intel_pxp *pxp)
     34{
     35	intel_pxp_resume(pxp);
     36}
     37#endif /* __INTEL_PXP_PM_H__ */