/kernel/linux/linux-5.10/kernel/sched/ |
H A D | autogroup.c | 208 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument 215 if (nice < MIN_NICE || nice > MAX_NICE) in proc_sched_autogroup_set_nice() 218 err = security_task_setnice(current, nice); in proc_sched_autogroup_set_nice() 222 if (nice < 0 && !can_nice(current, nice)) in proc_sched_autogroup_set_nice() 232 idx = array_index_nospec(nice + 20, 40); in proc_sched_autogroup_set_nice() 238 ag->nice = nice; in proc_sched_autogroup_set_nice() 254 seq_printf(m, "/autogroup-%ld nice in proc_sched_autogroup_show_task() [all...] |
H A D | autogroup.h | 14 int nice; member
|
H A D | core.c | 1670 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument 1679 prio = NICE_TO_PRIO(nice); in __normal_prio() 5183 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument 5190 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice() 5201 * allow the 'normal' nice value to be set - but as expected in set_user_nice() 5206 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 5216 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 5238 * can_nice - check if a task can reduce its nice valu 5242 can_nice(const struct task_struct *p, const int nice) can_nice() argument 5262 long nice, retval; SYSCALL_DEFINE1() local 5798 sched_set_normal(struct task_struct *p, int nice) sched_set_normal() argument 8970 cpu_weight_nice_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, s64 nice) cpu_weight_nice_write_s64() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | autogroup.c | 231 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument 238 if (nice < MIN_NICE || nice > MAX_NICE) in proc_sched_autogroup_set_nice() 241 err = security_task_setnice(current, nice); in proc_sched_autogroup_set_nice() 245 if (nice < 0 && !can_nice(current, nice)) in proc_sched_autogroup_set_nice() 255 idx = array_index_nospec(nice + 20, 40); in proc_sched_autogroup_set_nice() 261 ag->nice = nice; in proc_sched_autogroup_set_nice() 277 seq_printf(m, "/autogroup-%ld nice in proc_sched_autogroup_show_task() [all...] |
H A D | autogroup.h | 17 int nice; member
|
H A D | core.c | 2193 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument 2202 prio = NICE_TO_PRIO(nice); in __normal_prio() 2953 * Migrate-Disable comes along and tramples all over our nice sandcastle. 7377 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument 7384 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice() 7395 * allow the 'normal' nice value to be set - but as expected in set_user_nice() 7400 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 7410 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 7439 is_nice_reduction(const struct task_struct *p, const int nice) is_nice_reduction() argument 7452 can_nice(const struct task_struct *p, const int nice) can_nice() argument 7468 long nice, retval; SYSCALL_DEFINE1() local 8147 sched_set_normal(struct task_struct *p, int nice) sched_set_normal() argument 12117 cpu_weight_nice_write_s64(struct cgroup_subsys_state *css, struct cftype *cft, s64 nice) cpu_weight_nice_write_s64() argument [all...] |
/kernel/linux/linux-5.10/include/linux/sched/ |
H A D | prio.h | 29 * Convert user-nice values [ -20 ... 0 ... 19 ] 33 #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO) 37 * 'User priority' is the nice value converted to something we 46 * Convert nice value [19,-20] to rlimit style value [1,40]. 48 static inline long nice_to_rlimit(long nice) in nice_to_rlimit() argument 50 return (MAX_NICE - nice + 1); in nice_to_rlimit() 54 * Convert rlimit style value [1,40] to nice value [-20, 19].
|
H A D | autogroup.h | 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
|
/kernel/linux/linux-6.6/include/linux/sched/ |
H A D | prio.h | 29 * Convert user-nice values [ -20 ... 0 ... 19 ] 33 #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO) 37 * 'User priority' is the nice value converted to something we 46 * Convert nice value [19,-20] to rlimit style value [1,40]. 48 static inline long nice_to_rlimit(long nice) in nice_to_rlimit() argument 50 return (MAX_NICE - nice + 1); in nice_to_rlimit() 54 * Convert rlimit style value [1,40] to nice value [-20, 19].
|
H A D | autogroup.h | 18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
|
/kernel/linux/linux-6.6/fs/proc/ |
H A D | stat.c | 85 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local 92 user = nice = system = idle = iowait = in show_stat() 106 nice += cpustat[CPUTIME_NICE]; in show_stat() 128 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat() 147 nice = cpustat[CPUTIME_NICE]; in show_stat() 158 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 1035 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument 1038 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map() 1041 while (*nice) in text_map() 1042 *p++ = *nice++; in text_map() 1046 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument 1049 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info() 1051 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info() 1054 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info() 1055 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info() 1057 else if (strlen(nice) < map_widt in map_1d_info() 1065 map_2d_info(char **map, int xdiv, int ydiv, char *nice, struct tcm_area *a) map_2d_info() argument 1084 char nice[128]; tiler_map_show() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/ |
H A D | omap_dmm_tiler.c | 1023 static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) in text_map() argument 1026 int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; in text_map() 1029 while (*nice) in text_map() 1030 *p++ = *nice++; in text_map() 1034 static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, in map_1d_info() argument 1037 sprintf(nice, "%dK", tcm_sizeof(*a) * 4); in map_1d_info() 1039 text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, in map_1d_info() 1042 if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) in map_1d_info() 1043 text_map(map, xdiv, nice, a->p0.y / ydiv, in map_1d_info() 1045 else if (strlen(nice) < map_widt in map_1d_info() 1053 map_2d_info(char **map, int xdiv, int ydiv, char *nice, struct tcm_area *a) map_2d_info() argument 1072 char nice[128]; tiler_map_show() local [all...] |
/kernel/linux/linux-5.10/fs/proc/ |
H A D | stat.c | 110 u64 user, nice, system, idle, iowait, irq, softirq, steal; in show_stat() local 117 user = nice = system = idle = iowait = in show_stat() 129 nice += cpustat[CPUTIME_NICE]; in show_stat() 151 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat() 170 nice = cpustat[CPUTIME_NICE]; in show_stat() 181 seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); in show_stat()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
H A D | sys_test_028.cpp | 42 ret = nice(0); in TestCase() 50 ret = nice(-40); /* -40, set invalid priority for test */ in TestCase()
|
/kernel/linux/common_modules/qos_auth/auth_ctl/ |
H A D | qos_ctrl.c | 89 attr.sched_nice = item->nice; in sched_set_task_qos_attr() 546 static inline bool valid_nice(int nice) in valid_nice() argument 548 return nice >= MIN_NICE && nice <= MAX_NICE; in valid_nice() 602 if (!valid_nice(data->nice)) { in valid_qos_item() 603 pr_err("[QOS_CTRL] invalid nice, policy change failed\n"); in valid_qos_item() 653 item->nice = data->nice; in do_qos_policy_change()
|
H A D | qos_ctrl.h | 20 int nice; member
|
/kernel/linux/linux-5.10/drivers/block/paride/ |
H A D | pseudo.h | 13 int nice ) 19 If nice is 1, the test will done approximately once a 20 jiffy. If nice is 0, the test will also be done whenever 22 nice is greater than 1, the test will be done once every 23 (nice-1) jiffies. 30 1.02 1998.12.14 Added support for nice > 1 52 int timeout, int nice) in ps_set_intr() 61 ps_nice = nice; in ps_set_intr() 50 ps_set_intr(void (*continuation)(void), int (*ready)(void), int timeout, int nice) ps_set_intr() argument
|
H A D | pf.c | 84 nice This parameter controls the driver's use of 96 pf.nice 133 static int nice = 0; variable 167 module_param(nice, int, 0); 728 printk("%s: %s version %s, major %d, cluster %d, nice %d\n", in pf_detect() 729 name, name, PF_VERSION, major, cluster, nice); in pf_detect() 921 ps_set_intr(do_pf_read_start, NULL, 0, nice); in do_pf_read() 939 ps_set_intr(do_pf_read_drq, pf_ready, PF_TMO, nice); in do_pf_read_start() 967 ps_set_intr(do_pf_write_start, NULL, 0, nice); in do_pf_write() 1002 ps_set_intr(do_pf_write_done, pf_ready, PF_TMO, nice); in do_pf_write_start() [all...] |
H A D | pd.c | 86 nice This parameter controls the driver's use of 98 pd.nice 133 static int nice = 0; variable 168 module_param(nice, int, 0); 373 if (!nice) in schedule_fsm() 376 schedule_delayed_work(&fsm_tq, nice-1); in schedule_fsm() 1010 printk("%s: %s version %s, major %d, cluster %d, nice %d\n", in pd_init() 1011 name, name, PD_VERSION, major, cluster, nice); in pd_init()
|
H A D | pcd.c | 69 nice This parameter controls the driver's use of 80 pcd.nice 117 static int nice = 0; variable 150 module_param(nice, int, 0); 717 printk("%s: %s version %s, major %d, nice %d\n", in pcd_detect() 718 name, name, PCD_VERSION, major, nice); in pcd_detect() 813 ps_set_intr(do_pcd_read, NULL, 0, nice); in pcd_request() 885 ps_set_intr(do_pcd_read_drq, pcd_ready, PCD_TMO, nice); in pcd_start()
|
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/ |
H A D | icp_qat_hw_20_comp.h | 70 __u16 nice; member 105 QAT_FIELD_SET(val32, csr.nice, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_UPPER()
|
H A D | adf_gen4_dc.c | 41 hw_comp_upper_csr.nice = ICP_QAT_HW_COMP_20_CONFIG_CSR_NICE_PARAM_DEFAULT_VAL; in qat_comp_build_deflate()
|
/kernel/linux/common_modules/qos_auth/include/ |
H A D | qos_ctrl.h | 85 int nice; member
|
/kernel/linux/linux-5.10/kernel/ |
H A D | workqueue.c | 1938 pool->attrs->nice < 0 ? "H" : ""); in create_worker() 1947 set_user_nice(worker->task, pool->attrs->nice); in create_worker() 3394 to->nice = from->nice; in copy_workqueue_attrs() 3409 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash() 3419 if (a->nice != b->nice) in wqattrs_equal() 4693 pr_cont(" flags=0x%x nice=%d", pool->flags, pool->attrs->nice); in pr_cont_pool_info() 5403 * nice R [all...] |