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

pm_domains.h (522B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/*
      3 * Copyright 2022, The Chromium OS Authors. All rights reserved.
      4 */
      5
      6#ifndef __SOC_ROCKCHIP_PM_DOMAINS_H__
      7#define __SOC_ROCKCHIP_PM_DOMAINS_H__
      8
      9#ifdef CONFIG_ROCKCHIP_PM_DOMAINS
     10
     11int rockchip_pmu_block(void);
     12void rockchip_pmu_unblock(void);
     13
     14#else /* CONFIG_ROCKCHIP_PM_DOMAINS */
     15
     16static inline int rockchip_pmu_block(void)
     17{
     18	return 0;
     19}
     20
     21static inline void rockchip_pmu_unblock(void) { }
     22
     23#endif /* CONFIG_ROCKCHIP_PM_DOMAINS */
     24
     25#endif /* __SOC_ROCKCHIP_PM_DOMAINS_H__ */