]> git.ipfire.org Git - thirdparty/linux.git/blame - block/blk-wbt.h
x86/bugs: Replace CONFIG_SPECTRE_BHI_{ON,OFF} with CONFIG_MITIGATION_SPECTRE_BHI
[thirdparty/linux.git] / block / blk-wbt.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
e34cbd30
JA
2#ifndef WB_THROTTLE_H
3#define WB_THROTTLE_H
4
e34cbd30
JA
5#ifdef CONFIG_BLK_WBT
6
958f2965 7int wbt_init(struct gendisk *disk);
04aad37b
CH
8void wbt_disable_default(struct gendisk *disk);
9void wbt_enable_default(struct gendisk *disk);
e34cbd30 10
a7905043
JB
11u64 wbt_get_min_lat(struct request_queue *q);
12void wbt_set_min_lat(struct request_queue *q, u64 val);
3642ef4d 13bool wbt_disabled(struct request_queue *);
a7905043 14
80e091d1
JA
15u64 wbt_default_latency_nsec(struct request_queue *);
16
e34cbd30
JA
17#else
18
04aad37b 19static inline void wbt_disable_default(struct gendisk *disk)
e34cbd30
JA
20{
21}
04aad37b 22static inline void wbt_enable_default(struct gendisk *disk)
e34cbd30
JA
23{
24}
e34cbd30
JA
25
26#endif /* CONFIG_BLK_WBT */
27
28#endif