Home
last modified time | relevance | path

Searched refs:task_nice (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/kernel/sched/
Dcputime.c126 index = (task_nice(p) > 0) ? CPUTIME_NICE : CPUTIME_USER; in account_user_time()
150 if (task_nice(p) > 0) { in account_guest_time()
933 if (task_nice(tsk) <= 0) in kcpustat_field_vtime()
937 if (task_nice(tsk) > 0) in kcpustat_field_vtime()
941 if (state == VTIME_GUEST && task_nice(tsk) <= 0) in kcpustat_field_vtime()
945 if (state == VTIME_GUEST && task_nice(tsk) > 0) in kcpustat_field_vtime()
1024 if (task_nice(tsk) > 0) in kcpustat_cpu_fetch_vtime()
1030 if (task_nice(tsk) > 0) { in kcpustat_cpu_fetch_vtime()
Dcore.c6874 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice()
6954 nice = task_nice(current) + increment; in SYSCALL_DEFINE1()
7257 if (attr->sched_nice < task_nice(p) && in __sched_setscheduler()
7290 if (!can_nice(p, task_nice(p))) in __sched_setscheduler()
7345 if (fair_policy(policy) && attr->sched_nice != task_nice(p)) in __sched_setscheduler()
7671 attr->sched_nice = task_nice(p); in get_params()
9632 if (task_nice(p) < 0) in normalize_rt_tasks()
/Linux-v5.15/include/linux/
Dioprio.h32 return (task_nice(task) + 20) / 5; in task_nice_ioprio()
Dsched.h1838 static inline int task_nice(const struct task_struct *p) in task_nice() function
/Linux-v5.15/Documentation/accounting/
Dtaskstats-struct.rst63 /* The value of task_nice() of a task. */
64 __u8 ac_nice; /* task_nice */
/Linux-v5.15/kernel/
Dtsacct.c52 stats->ac_nice = task_nice(tsk); in bacct_add_tsk()
Dsys.c187 if (niceval < task_nice(p) && !can_nice(p, niceval)) { in set_one_prio()
294 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
305 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
322 niceval = nice_to_rlimit(task_nice(p)); in SYSCALL_DEFINE2()
/Linux-v5.15/kernel/rcu/
Drcutorture.c1067 int oldnice = task_nice(current); in rcu_torture_fqs()
1153 int oldnice = task_nice(current); in rcu_torture_writer()
1695 int oldnice = task_nice(current); in rcu_nocb_toggle()
2409 int oldnice = task_nice(current); in rcu_torture_fwd_prog()
/Linux-v5.15/fs/proc/
Darray.c555 nice = task_nice(task); in do_task_stat()
/Linux-v5.15/fs/
Dselect.c60 if (task_nice(current) > 0) in __estimate_accuracy()
Dbinfmt_elf_fdpic.c1355 psinfo->pr_nice = task_nice(p); in fill_psinfo()
Dbinfmt_elf.c1568 psinfo->pr_nice = task_nice(p); in fill_psinfo()
/Linux-v5.15/drivers/android/
Dbinder.c2719 t->priority = task_nice(current); in binder_transaction()
4081 t->saved_priority = task_nice(current); in binder_thread_read()
5060 proc->default_priority = task_nice(current); in binder_open()
/Linux-v5.15/virt/kvm/
Dkvm_main.c5644 set_user_nice(current, task_nice(init_context->parent)); in kvm_vm_worker_thread()