nice 1046 drivers/android/binder.c static void binder_set_nice(long nice) nice 1050 drivers/android/binder.c if (can_nice(current, nice)) { nice 1051 drivers/android/binder.c set_user_nice(current, nice); nice 1057 drivers/android/binder.c current->pid, nice, min_nice); nice 117 drivers/block/paride/pcd.c static int nice = 0; nice 150 drivers/block/paride/pcd.c module_param(nice, int, 0); nice 715 drivers/block/paride/pcd.c name, name, PCD_VERSION, major, nice); nice 810 drivers/block/paride/pcd.c ps_set_intr(do_pcd_read, NULL, 0, nice); nice 882 drivers/block/paride/pcd.c ps_set_intr(do_pcd_read_drq, pcd_ready, PCD_TMO, nice); nice 133 drivers/block/paride/pd.c static int nice = 0; nice 168 drivers/block/paride/pd.c module_param(nice, int, 0); nice 373 drivers/block/paride/pd.c if (!nice) nice 376 drivers/block/paride/pd.c schedule_delayed_work(&fsm_tq, nice-1); nice 1010 drivers/block/paride/pd.c name, name, PD_VERSION, major, cluster, nice); nice 133 drivers/block/paride/pf.c static int nice = 0; nice 167 drivers/block/paride/pf.c module_param(nice, int, 0); nice 728 drivers/block/paride/pf.c name, name, PF_VERSION, major, cluster, nice); nice 920 drivers/block/paride/pf.c ps_set_intr(do_pf_read_start, NULL, 0, nice); nice 938 drivers/block/paride/pf.c ps_set_intr(do_pf_read_drq, pf_ready, PF_TMO, nice); nice 966 drivers/block/paride/pf.c ps_set_intr(do_pf_write_start, NULL, 0, nice); nice 1001 drivers/block/paride/pf.c ps_set_intr(do_pf_write_done, pf_ready, PF_TMO, nice); nice 52 drivers/block/paride/pseudo.h int timeout, int nice) nice 61 drivers/block/paride/pseudo.h ps_nice = nice; nice 1036 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c static void text_map(char **map, int xdiv, char *nice, int yd, int x0, int x1) nice 1039 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c int w = (map_width(xdiv, x0, x1) - strlen(nice)) / 2; nice 1042 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c while (*nice) nice 1043 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c *p++ = *nice++; nice 1047 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c static void map_1d_info(char **map, int xdiv, int ydiv, char *nice, nice 1050 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c sprintf(nice, "%dK", tcm_sizeof(*a) * 4); nice 1052 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, 0, nice 1055 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c if (strlen(nice) < map_width(xdiv, a->p0.x, 256 - 1)) nice 1056 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c text_map(map, xdiv, nice, a->p0.y / ydiv, nice 1058 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c else if (strlen(nice) < map_width(xdiv, 0, a->p1.x)) nice 1059 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c text_map(map, xdiv, nice, a->p1.y / ydiv, nice 1061 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c } else if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) { nice 1062 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c text_map(map, xdiv, nice, a->p0.y / ydiv, a->p0.x, a->p1.x); nice 1066 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c static void map_2d_info(char **map, int xdiv, int ydiv, char *nice, nice 1069 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c sprintf(nice, "(%d*%d)", tcm_awidth(*a), tcm_aheight(*a)); nice 1070 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c if (strlen(nice) + 1 < map_width(xdiv, a->p0.x, a->p1.x)) nice 1071 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c text_map(map, xdiv, nice, (a->p0.y + a->p1.y) / 2 / ydiv, nice 1085 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c char nice[128]; nice 1126 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c map_2d_info(map, xdiv, ydiv, nice, nice 1143 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c map_1d_info(map, xdiv, ydiv, nice, nice 434 fs/proc/array.c int priority, nice; nice 533 fs/proc/array.c nice = task_nice(task); nice 558 fs/proc/array.c seq_put_decimal_ll(m, " ", nice); nice 1487 fs/proc/base.c int nice; nice 1496 fs/proc/base.c err = kstrtoint(strstrip(buffer), 0, &nice); nice 1504 fs/proc/base.c err = proc_sched_autogroup_set_nice(p, nice); nice 110 fs/proc/stat.c u64 user, nice, system, idle, iowait, irq, softirq, steal; nice 117 fs/proc/stat.c user = nice = system = idle = iowait = nice 126 fs/proc/stat.c nice += kcs->cpustat[CPUTIME_NICE]; nice 148 fs/proc/stat.c seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); nice 164 fs/proc/stat.c nice = kcs->cpustat[CPUTIME_NICE]; nice 175 fs/proc/stat.c seq_put_decimal_ull(p, " ", nsec_to_clock_t(nice)); nice 1640 include/linux/lsm_hooks.h int (*task_setnice)(struct task_struct *p, int nice); nice 1589 include/linux/sched.h extern void set_user_nice(struct task_struct *p, long nice); nice 1603 include/linux/sched.h extern int can_nice(const struct task_struct *p, const int nice); nice 18 include/linux/sched/autogroup.h extern int proc_sched_autogroup_set_nice(struct task_struct *p, int nice); nice 33 include/linux/sched/prio.h #define NICE_TO_PRIO(nice) ((nice) + DEFAULT_PRIO) nice 48 include/linux/sched/prio.h static inline long nice_to_rlimit(long nice) nice 50 include/linux/sched/prio.h return (MAX_NICE - nice + 1); nice 158 include/linux/security.h extern int cap_task_setnice(struct task_struct *p, int nice); nice 395 include/linux/security.h int security_task_setnice(struct task_struct *p, int nice); nice 1049 include/linux/security.h static inline int security_task_setnice(struct task_struct *p, int nice) nice 1051 include/linux/security.h return cap_task_setnice(p, nice); nice 141 include/linux/workqueue.h int nice; nice 208 kernel/sched/autogroup.c int proc_sched_autogroup_set_nice(struct task_struct *p, int nice) nice 215 kernel/sched/autogroup.c if (nice < MIN_NICE || nice > MAX_NICE) nice 218 kernel/sched/autogroup.c err = security_task_setnice(current, nice); nice 222 kernel/sched/autogroup.c if (nice < 0 && !can_nice(current, nice)) nice 232 kernel/sched/autogroup.c idx = array_index_nospec(nice + 20, 40); nice 238 kernel/sched/autogroup.c ag->nice = nice; nice 254 kernel/sched/autogroup.c seq_printf(m, "/autogroup-%ld nice %d\n", ag->id, ag->nice); nice 14 kernel/sched/autogroup.h int nice; nice 4493 kernel/sched/core.c void set_user_nice(struct task_struct *p, long nice) nice 4500 kernel/sched/core.c if (task_nice(p) == nice || nice < MIN_NICE || nice > MAX_NICE) nice 4516 kernel/sched/core.c p->static_prio = NICE_TO_PRIO(nice); nice 4526 kernel/sched/core.c p->static_prio = NICE_TO_PRIO(nice); nice 4553 kernel/sched/core.c int can_nice(const struct task_struct *p, const int nice) nice 4556 kernel/sched/core.c int nice_rlim = nice_to_rlimit(nice); nice 4571 kernel/sched/core.c SYSCALL_DEFINE1(nice, int, increment) nice 4573 kernel/sched/core.c long nice, retval; nice 4581 kernel/sched/core.c nice = task_nice(current) + increment; nice 4583 kernel/sched/core.c nice = clamp_val(nice, MIN_NICE, MAX_NICE); nice 4584 kernel/sched/core.c if (increment < 0 && !can_nice(current, nice)) nice 4587 kernel/sched/core.c retval = security_task_setnice(current, nice); nice 4591 kernel/sched/core.c set_user_nice(current, nice); nice 7785 kernel/sched/core.c struct cftype *cft, s64 nice) nice 7790 kernel/sched/core.c if (nice < MIN_NICE || nice > MAX_NICE) nice 7793 kernel/sched/core.c idx = NICE_TO_PRIO(nice) - MAX_RT_PRIO; nice 1533 kernel/trace/trace.c max_data->nice = tsk->static_prio - 20 - MAX_RT_PRIO; nice 3679 kernel/trace/trace.c from_kuid_munged(seq_user_ns(m), data->uid), data->nice, nice 158 kernel/trace/trace.h unsigned long nice; nice 1928 kernel/workqueue.c pool->attrs->nice < 0 ? "H" : ""); nice 1937 kernel/workqueue.c set_user_nice(worker->task, pool->attrs->nice); nice 3377 kernel/workqueue.c to->nice = from->nice; nice 3392 kernel/workqueue.c hash = jhash_1word(attrs->nice, hash); nice 3402 kernel/workqueue.c if (a->nice != b->nice) nice 4637 kernel/workqueue.c pr_cont(" flags=0x%x nice=%d", pool->flags, pool->attrs->nice); nice 5417 kernel/workqueue.c written = scnprintf(buf, PAGE_SIZE, "%d\n", wq->unbound_attrs->nice); nice 5451 kernel/workqueue.c if (sscanf(buf, "%d", &attrs->nice) == 1 && nice 5452 kernel/workqueue.c attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE) nice 5541 kernel/workqueue.c __ATTR(nice, 0644, wq_nice_show, wq_nice_store), nice 5913 kernel/workqueue.c pool->attrs->nice = std_nice[i++]; nice 5928 kernel/workqueue.c attrs->nice = std_nice[i]; nice 5937 kernel/workqueue.c attrs->nice = std_nice[i]; nice 1131 security/commoncap.c int cap_task_setnice(struct task_struct *p, int nice) nice 1659 security/security.c int security_task_setnice(struct task_struct *p, int nice) nice 1661 security/security.c return call_int_hook(task_setnice, 0, p, nice); nice 4068 security/selinux/hooks.c static int selinux_task_setnice(struct task_struct *p, int nice) nice 2109 security/smack/smack_lsm.c static int smack_task_setnice(struct task_struct *p, int nice)