core.c (74a5ce20e6eeeb3751340b390e7ac1d1d07bbf55) core.c (29baa7478ba47d746e3625c91d3b2afbf46b4312)
1/*
2 * kernel/sched/core.c
3 *
4 * Kernel scheduler and related syscalls
5 *
6 * Copyright (C) 1991-2002 Linus Torvalds
7 *
8 * 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and

--- 5001 unchanged lines hidden (view full) ---

5010
5011#ifdef CONFIG_SMP
5012void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
5013{
5014 if (p->sched_class && p->sched_class->set_cpus_allowed)
5015 p->sched_class->set_cpus_allowed(p, new_mask);
5016
5017 cpumask_copy(&p->cpus_allowed, new_mask);
1/*
2 * kernel/sched/core.c
3 *
4 * Kernel scheduler and related syscalls
5 *
6 * Copyright (C) 1991-2002 Linus Torvalds
7 *
8 * 1996-12-23 Modified by Dave Grothe to fix bugs in semaphores and

--- 5001 unchanged lines hidden (view full) ---

5010
5011#ifdef CONFIG_SMP
5012void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
5013{
5014 if (p->sched_class && p->sched_class->set_cpus_allowed)
5015 p->sched_class->set_cpus_allowed(p, new_mask);
5016
5017 cpumask_copy(&p->cpus_allowed, new_mask);
5018 p->rt.nr_cpus_allowed = cpumask_weight(new_mask);
5018 p->nr_cpus_allowed = cpumask_weight(new_mask);
5019}
5020
5021/*
5022 * This is how migration works:
5023 *
5024 * 1) we invoke migration_cpu_stop() on the target CPU using
5025 * stop_one_cpu().
5026 * 2) stopper starts to run (implicitly forcing the migrated thread

--- 3244 unchanged lines hidden ---
5019}
5020
5021/*
5022 * This is how migration works:
5023 *
5024 * 1) we invoke migration_cpu_stop() on the target CPU using
5025 * stop_one_cpu().
5026 * 2) stopper starts to run (implicitly forcing the migrated thread

--- 3244 unchanged lines hidden ---