Home
last modified time | relevance | path

Searched refs:new_mask (Results 1 – 6 of 6) sorted by relevance

/kernel/
Dcompat.c199 unsigned len, struct cpumask *new_mask) in compat_get_user_cpu_mask() argument
204 memset(new_mask, 0, cpumask_size()); in compat_get_user_cpu_mask()
208 k = cpumask_bits(new_mask); in compat_get_user_cpu_mask()
216 cpumask_var_t new_mask; in COMPAT_SYSCALL_DEFINE3() local
219 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) in COMPAT_SYSCALL_DEFINE3()
222 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); in COMPAT_SYSCALL_DEFINE3()
226 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
228 free_cpumask_var(new_mask); in COMPAT_SYSCALL_DEFINE3()
/kernel/time/
Dsched_clock.c170 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
184 new_mask = CLOCKSOURCE_MASK(bits); in sched_clock_register()
188 wrap = clocks_calc_max_nsecs(new_mult, new_shift, 0, new_mask, NULL); in sched_clock_register()
200 rd.sched_clock_mask = new_mask; in sched_clock_register()
/kernel/sched/
Dcore.c1585 void set_cpus_allowed_common(struct task_struct *p, const struct cpumask *new_mask) in set_cpus_allowed_common() argument
1587 cpumask_copy(&p->cpus_mask, new_mask); in set_cpus_allowed_common()
1588 p->nr_cpus_allowed = cpumask_weight(new_mask); in set_cpus_allowed_common()
1591 void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask) in do_set_cpus_allowed() argument
1612 p->sched_class->set_cpus_allowed(p, new_mask); in do_set_cpus_allowed()
1630 const struct cpumask *new_mask, bool check) in __set_cpus_allowed_ptr() argument
1657 if (cpumask_equal(p->cpus_ptr, new_mask)) in __set_cpus_allowed_ptr()
1660 dest_cpu = cpumask_any_and(cpu_valid_mask, new_mask); in __set_cpus_allowed_ptr()
1666 do_set_cpus_allowed(p, new_mask); in __set_cpus_allowed_ptr()
1673 WARN_ON(cpumask_intersects(new_mask, cpu_online_mask) && in __set_cpus_allowed_ptr()
[all …]
Ddeadline.c2232 const struct cpumask *new_mask) in set_cpus_allowed_dl() argument
2247 if (!cpumask_intersects(src_rd->span, new_mask)) { in set_cpus_allowed_dl()
2261 set_cpus_allowed_common(p, new_mask); in set_cpus_allowed_dl()
Dsched.h1840 extern void set_cpus_allowed_common(struct task_struct *p, const struct cpumask *new_mask);
/kernel/locking/
Dlockdep.c3631 unsigned int new_mask = 1 << new_bit, ret = 1; in mark_lock() local
3642 if (likely(hlock_class(this)->usage_mask & new_mask)) in mark_lock()
3650 if (unlikely(hlock_class(this)->usage_mask & new_mask)) { in mark_lock()
3655 hlock_class(this)->usage_mask |= new_mask; in mark_lock()