Lines Matching refs:nice
2036 static inline int __normal_prio(int policy, int rt_prio, int nice) in __normal_prio() argument
2045 prio = NICE_TO_PRIO(nice); in __normal_prio()
6848 void set_user_nice(struct task_struct *p, long nice) in set_user_nice() argument
6855 if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) in set_user_nice()
6871 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
6881 p->static_prio = NICE_TO_PRIO(nice); in set_user_nice()
6907 int can_nice(const struct task_struct *p, const int nice) in can_nice() argument
6910 int nice_rlim = nice_to_rlimit(nice); in can_nice()
6925 SYSCALL_DEFINE1(nice, int, increment) in SYSCALL_DEFINE1() argument
6927 long nice, retval; in SYSCALL_DEFINE1() local
6935 nice = task_nice(current) + increment; in SYSCALL_DEFINE1()
6937 nice = clamp_val(nice, MIN_NICE, MAX_NICE); in SYSCALL_DEFINE1()
6938 if (increment < 0 && !can_nice(current, nice)) in SYSCALL_DEFINE1()
6941 retval = security_task_setnice(current, nice); in SYSCALL_DEFINE1()
6945 set_user_nice(current, nice); in SYSCALL_DEFINE1()
7563 void sched_set_normal(struct task_struct *p, int nice) in sched_set_normal() argument
7567 .sched_nice = nice, in sched_set_normal()
10688 struct cftype *cft, s64 nice) in cpu_weight_nice_write_s64() argument
10693 if (nice < MIN_NICE || nice > MAX_NICE) in cpu_weight_nice_write_s64()
10696 idx = NICE_TO_PRIO(nice) - MAX_RT_PRIO; in cpu_weight_nice_write_s64()