.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | * |
---|
8 | 5 | * vineetg: May 2011 |
---|
9 | 6 | * -Refactored get_new_mmu_context( ) to only handle live-mm. |
---|
.. | .. |
---|
147 | 144 | */ |
---|
148 | 145 | cpumask_set_cpu(cpu, mm_cpumask(next)); |
---|
149 | 146 | |
---|
150 | | -#ifndef CONFIG_SMP |
---|
| 147 | +#ifdef ARC_USE_SCRATCH_REG |
---|
151 | 148 | /* PGD cached in MMU reg to avoid 3 mem lookups: task->mm->pgd */ |
---|
152 | 149 | write_aux_reg(ARC_REG_SCRATCH_DATA0, next->pgd); |
---|
153 | 150 | #endif |
---|