1419b0af8Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 2419b0af8Sopenharmony_ciconfig AUTHORITY_CTRL 3419b0af8Sopenharmony_ci tristate "Authority Control for RTG & QOS" 4419b0af8Sopenharmony_ci default n 5419b0af8Sopenharmony_ci help 6419b0af8Sopenharmony_ci Control thread's authority for specific kenrel feature such as RTG 7419b0af8Sopenharmony_ci or QOS. Use uid as the authentication granularity. Status switching 8419b0af8Sopenharmony_ci will change uid's authority, and would trigger additional actions 9419b0af8Sopenharmony_ci registered by specific kernel feature. 10419b0af8Sopenharmony_ci 11419b0af8Sopenharmony_ciconfig QOS_CTRL 12419b0af8Sopenharmony_ci bool "Multiple Level Qos Control for thread" 13419b0af8Sopenharmony_ci default n 14419b0af8Sopenharmony_ci depends on AUTHORITY_CTRL 15419b0af8Sopenharmony_ci help 16419b0af8Sopenharmony_ci If set, thread can apply qos for less execution latency and get more 17419b0af8Sopenharmony_ci cpu supply. Permission and absolute supply aggressiveness was controlled 18419b0af8Sopenharmony_ci by AUTHORITY_CTRL. 19419b0af8Sopenharmony_ci 20419b0af8Sopenharmony_ciconfig RTG_AUTHORITY 21419b0af8Sopenharmony_ci bool "Authority Control for SCHED_RTG_FRAME" 22419b0af8Sopenharmony_ci default n 23419b0af8Sopenharmony_ci depends on AUTHORITY_CTRL 24419b0af8Sopenharmony_ci depends on SCHED_RTG_FRAME 25419b0af8Sopenharmony_ci help 26419b0af8Sopenharmony_ci Authority control for SCHED_RTG_FRAME. If set, access to SCHED_RTG_FRAME's 27419b0af8Sopenharmony_ci ioctl cmd will be restricted. 28419b0af8Sopenharmony_ci 29419b0af8Sopenharmony_ciconfig QOS_AUTHORITY 30419b0af8Sopenharmony_ci bool "Authority Control for QOS_CTRL" 31419b0af8Sopenharmony_ci default n 32419b0af8Sopenharmony_ci depends on AUTHORITY_CTRL 33419b0af8Sopenharmony_ci depends on QOS_CTRL 34419b0af8Sopenharmony_ci help 35419b0af8Sopenharmony_ci Authority control for QOS_CTRL. If set, access to QOS_CTRL's ioctl cmd will 36419b0af8Sopenharmony_ci be restricted. 37419b0af8Sopenharmony_ci 38419b0af8Sopenharmony_ciconfig AUTH_QOS_DEBUG 39419b0af8Sopenharmony_ci bool "Debug fs for qos_ctrl and auth_ctrl" 40419b0af8Sopenharmony_ci default n 41419b0af8Sopenharmony_ci depends on AUTHORITY_CTRL 42419b0af8Sopenharmony_ci depends on RTG_AUTHORITY 43419b0af8Sopenharmony_ci depends on QOS_AUTHORITY 44419b0af8Sopenharmony_ci help 45419b0af8Sopenharmony_ci If set, debug node will show auth and qos info 46419b0af8Sopenharmony_ci 47419b0af8Sopenharmony_ciconfig QOS_POLICY_MAX_NR 48419b0af8Sopenharmony_ci int "Number of supported qos policy" 49419b0af8Sopenharmony_ci range 5 20 50419b0af8Sopenharmony_ci default 5 51419b0af8Sopenharmony_ci depends on QOS_CTRL 52419b0af8Sopenharmony_ci help 53419b0af8Sopenharmony_ci Qos policy number limit. Truly initialized qos policy could small then 54419b0af8Sopenharmony_ci this value. 55419b0af8Sopenharmony_ci 56