1# SPDX-License-Identifier: GPL-2.0 2config AUTHORITY_CTRL 3 tristate "Authority Control for RTG & QOS" 4 default n 5 help 6 Control thread's authority for specific kenrel feature such as RTG 7 or QOS. Use uid as the authentication granularity. Status switching 8 will change uid's authority, and would trigger additional actions 9 registered by specific kernel feature. 10 11config QOS_CTRL 12 bool "Multiple Level Qos Control for thread" 13 default n 14 depends on AUTHORITY_CTRL 15 help 16 If set, thread can apply qos for less execution latency and get more 17 cpu supply. Permission and absolute supply aggressiveness was controlled 18 by AUTHORITY_CTRL. 19 20config RTG_AUTHORITY 21 bool "Authority Control for SCHED_RTG_FRAME" 22 default n 23 depends on AUTHORITY_CTRL 24 depends on SCHED_RTG_FRAME 25 help 26 Authority control for SCHED_RTG_FRAME. If set, access to SCHED_RTG_FRAME's 27 ioctl cmd will be restricted. 28 29config QOS_AUTHORITY 30 bool "Authority Control for QOS_CTRL" 31 default n 32 depends on AUTHORITY_CTRL 33 depends on QOS_CTRL 34 help 35 Authority control for QOS_CTRL. If set, access to QOS_CTRL's ioctl cmd will 36 be restricted. 37 38config AUTH_QOS_DEBUG 39 bool "Debug fs for qos_ctrl and auth_ctrl" 40 default n 41 depends on AUTHORITY_CTRL 42 depends on RTG_AUTHORITY 43 depends on QOS_AUTHORITY 44 help 45 If set, debug node will show auth and qos info 46 47config QOS_POLICY_MAX_NR 48 int "Number of supported qos policy" 49 range 5 20 50 default 5 51 depends on QOS_CTRL 52 help 53 Qos policy number limit. Truly initialized qos policy could small then 54 this value. 55 56