Home
last modified time | relevance | path

Searched refs:nice (Results 1 - 25 of 54) sorted by relevance

123

/kernel/linux/linux-5.10/kernel/sched/
H A Dautogroup.c208 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 Dautogroup.h14 int nice; member
H A Dcore.c1670 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 Dautogroup.c231 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 Dautogroup.h17 int nice; member
H A Dcore.c2193 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 Dprio.h29 * 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 Dautogroup.h18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
/kernel/linux/linux-6.6/include/linux/sched/
H A Dprio.h29 * 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 Dautogroup.h18 extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice);
/kernel/linux/linux-6.6/fs/proc/
H A Dstat.c85 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 Domap_dmm_tiler.c1035 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 Domap_dmm_tiler.c1023 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 Dstat.c110 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 Dsys_test_028.cpp42 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 Dqos_ctrl.c89 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 Dqos_ctrl.h20 int nice; member
/kernel/linux/linux-5.10/drivers/block/paride/
H A Dpseudo.h13 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 Dpf.c84 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 Dpd.c86 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 Dpcd.c69 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 Dicp_qat_hw_20_comp.h70 __u16 nice; member
105 QAT_FIELD_SET(val32, csr.nice, in ICP_QAT_FW_COMP_20_BUILD_CONFIG_UPPER()
H A Dadf_gen4_dc.c41 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 Dqos_ctrl.h85 int nice; member
/kernel/linux/linux-5.10/kernel/
H A Dworkqueue.c1938 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...]

Completed in 39 milliseconds

123