forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/arch/arm/mm/cache-xsc3l2.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/mm/cache-xsc3l2.c - XScale3 L2 cache controller support
34 *
45 * Copyright (C) 2007 ARM Limited
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
186 */
197 #include <linux/init.h>
208 #include <linux/highmem.h>
....@@ -71,7 +59,7 @@
7159 {
7260 #ifdef CONFIG_HIGHMEM
7361 if (va != -1)
74
- kunmap_atomic((void *)va);
62
+ kunmap_local((void *)va);
7563 #endif
7664 }
7765
....@@ -87,7 +75,7 @@
8775 * in place for it.
8876 */
8977 l2_unmap_va(prev_va);
90
- va = (unsigned long)kmap_atomic_pfn(pa >> PAGE_SHIFT);
78
+ va = (unsigned long)kmap_local_pfn(pa >> PAGE_SHIFT);
9179 }
9280 return va + (pa_offset >> (32 - PAGE_SHIFT));
9381 #else