Files
liuchungang 7c6b88f46e add policy option
Signed-off-by: liuchungang <1397328542@qq.com>
2024-02-18 15:49:41 +08:00

39 lines
662 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* drivers/auth_ctl/qos_ctrl.h
*
* Copyright (c) 2022 Huawei Device Co., Ltd.
*
*/
#ifndef __QOS_CTRL_H
#define __QOS_CTRL_H
#include "../../kernel/sched/sched.h"
#include <linux/sched/qos_ctrl.h>
/* min qos level used in kernel space, begin index for LOOP */
#define QOS_POLICY_MIN_LEVEL 0
struct qos_policy_item {
int nice;
int latency_nice;
int uclamp_min;
int uclamp_max;
int rt_sched_priority;
int policy;
};
struct qos_policy_map {
rwlock_t lock;
bool initialized;
unsigned int policy_flag;
struct qos_policy_item levels[NR_QOS];
};
int __init init_qos_ctrl(void);
#endif /* __OQS_CTRL_H */