hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm/mach-bcm/platsmp.c
....@@ -1,15 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Copyright (C) 2014-2015 Broadcom Corporation
34 * Copyright 2014 Linaro Limited
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License as
7
- * published by the Free Software Foundation version 2.
8
- *
9
- * This program is distributed "as is" WITHOUT ANY WARRANTY of any
10
- * kind, whether express or implied; without even the implied warranty
11
- * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #include <linux/cpumask.h>
....@@ -29,6 +21,8 @@
2921 #include <asm/smp.h>
3022 #include <asm/smp_plat.h>
3123 #include <asm/smp_scu.h>
24
+
25
+#include "platsmp.h"
3226
3327 /* Size of mapped Cortex A9 SCU address space */
3428 #define CORTEX_A9_SCU_SIZE 0x58
....@@ -111,7 +105,7 @@
111105 if (!secondary_boot_addr)
112106 return -EINVAL;
113107
114
- sku_rom_lut = ioremap_nocache((phys_addr_t)secondary_boot_addr,
108
+ sku_rom_lut = ioremap((phys_addr_t)secondary_boot_addr,
115109 sizeof(phys_addr_t));
116110 if (!sku_rom_lut) {
117111 pr_warn("unable to ioremap SKU-ROM LUT register for cpu %u\n", cpu);
....@@ -180,7 +174,7 @@
180174 if (!secondary_boot_addr)
181175 return -EINVAL;
182176
183
- boot_reg = ioremap_nocache((phys_addr_t)secondary_boot_addr,
177
+ boot_reg = ioremap((phys_addr_t)secondary_boot_addr,
184178 sizeof(phys_addr_t));
185179 if (!boot_reg) {
186180 pr_err("unable to map boot register for cpu %u\n", cpu_id);