| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* sched.c - SPU scheduler. |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) IBM 2005 |
|---|
| 4 | 5 | * Author: Mark Nutter <mnutter@us.ibm.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 2006-03-31 NUMA domains added. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2, or (at your option) |
|---|
| 11 | | - * any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | #undef DEBUG |
|---|
| .. | .. |
|---|
| 141 | 128 | * runqueue. The context will be rescheduled on the proper node |
|---|
| 142 | 129 | * if it is timesliced or preempted. |
|---|
| 143 | 130 | */ |
|---|
| 144 | | - cpumask_copy(&ctx->cpus_allowed, ¤t->cpus_allowed); |
|---|
| 131 | + cpumask_copy(&ctx->cpus_allowed, current->cpus_ptr); |
|---|
| 145 | 132 | |
|---|
| 146 | 133 | /* Save the current cpu id for spu interrupt routing. */ |
|---|
| 147 | 134 | ctx->last_ran = raw_smp_processor_id(); |
|---|