Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / blk-pm.h
blob004b38a538ffef76c9841395a8dbd0f39a58b183
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef _BLK_PM_H_
4 #define _BLK_PM_H_
6 struct device;
7 struct request_queue;
9 /*
10 * block layer runtime pm functions
12 #ifdef CONFIG_PM
13 extern void blk_pm_runtime_init(struct request_queue *q, struct device *dev);
14 extern int blk_pre_runtime_suspend(struct request_queue *q);
15 extern void blk_post_runtime_suspend(struct request_queue *q, int err);
16 extern void blk_pre_runtime_resume(struct request_queue *q);
17 extern void blk_post_runtime_resume(struct request_queue *q);
18 #else
19 static inline void blk_pm_runtime_init(struct request_queue *q,
20 struct device *dev) {}
21 #endif
23 #endif /* _BLK_PM_H_ */