Searched refs:nice (Results 1 – 6 of 6) sorted by relevance
/kernel/sched/ |
D | auto_group.c | 193 int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) in proc_sched_autogroup_set_nice() argument 199 if (nice < MIN_NICE || nice > MAX_NICE) in proc_sched_autogroup_set_nice() 202 err = security_task_setnice(current, nice); in proc_sched_autogroup_set_nice() 206 if (nice < 0 && !can_nice(current, nice)) in proc_sched_autogroup_set_nice() 217 err = sched_group_set_shares(ag->tg, prio_to_weight[nice + 20]); in proc_sched_autogroup_set_nice() 219 ag->nice = nice; in proc_sched_autogroup_set_nice() 235 seq_printf(m, "/autogroup-%ld nice %d\n", ag->id, ag->nice); in proc_sched_autogroup_show_task()
|
D | auto_group.h | 16 int nice; member
|
D | core.c | 3520 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument 3526 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice() 3540 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 3547 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice() 3572 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument 3575 int nice_rlim = nice_to_rlimit(nice); in can_nice() 3590 SYSCALL_DEFINE1(nice, int, increment) in SYSCALL_DEFINE1() argument 3592 long nice, retval; in SYSCALL_DEFINE1() local 3600 nice = task_nice(current) + increment; in SYSCALL_DEFINE1() 3602 nice = clamp_val(nice, MIN_NICE, MAX_NICE); in SYSCALL_DEFINE1() [all …]
|
/kernel/ |
D | workqueue.c | 1721 pool->attrs->nice < 0 ? "H" : ""); in create_worker() 1730 set_user_nice(worker->task, pool->attrs->nice); in create_worker() 3095 written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); in wq_nice_show() 3127 if (sscanf(buf, "%d", &attrs->nice) == 1 && in wq_nice_store() 3128 attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE) in wq_nice_store() 3208 __ATTR(nice, 0644, wq_nice_show, wq_nice_store), 3363 to->nice = from->nice; in copy_workqueue_attrs() 3378 hash = jhash_1word(attrs->nice, hash); in wqattrs_hash() 3388 if (a->nice != b->nice) in wqattrs_equal() 4939 pool->attrs->nice = std_nice[i++]; in init_workqueues() [all …]
|
/kernel/trace/ |
D | trace.h | 150 unsigned long nice; member
|
D | trace.c | 994 max_data->nice = tsk->static_prio - 20 - MAX_RT_PRIO; in __update_max_tr() 2664 from_kuid_munged(seq_user_ns(m), data->uid), data->nice, in print_trace_header()
|