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

blk-pm.h (708B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2
      3#ifndef _BLK_PM_H_
      4#define _BLK_PM_H_
      5
      6struct device;
      7struct request_queue;
      8
      9/*
     10 * block layer runtime pm functions
     11 */
     12#ifdef CONFIG_PM
     13extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev);
     14extern int blk_pre_runtime_suspend(struct request_queue *q);
     15extern void blk_post_runtime_suspend(struct request_queue *q, int err);
     16extern void blk_pre_runtime_resume(struct request_queue *q);
     17extern void blk_post_runtime_resume(struct request_queue *q);
     18extern void blk_set_runtime_active(struct request_queue *q);
     19#else
     20static inline void blk_pm_runtime_init(struct request_queue *q,
     21				       struct device *dev) {}
     22#endif
     23
     24#endif /* _BLK_PM_H_ */