forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arc/include/asm/mmu_context.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * 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.
74 *
85 * vineetg: May 2011
96 * -Refactored get_new_mmu_context( ) to only handle live-mm.
....@@ -147,7 +144,7 @@
147144 */
148145 cpumask_set_cpu(cpu, mm_cpumask(next));
149146
150
-#ifndef CONFIG_SMP
147
+#ifdef ARC_USE_SCRATCH_REG
151148 /* PGD cached in MMU reg to avoid 3 mem lookups: task->mm->pgd */
152149 write_aux_reg(ARC_REG_SCRATCH_DATA0, next->pgd);
153150 #endif