aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-13 16:04:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-13 16:04:46 -0400
commita26555498849489fb87139a15abe2eeb8a366ae7 (patch)
treeb68ca8f813e92e6b405f0a4fb81d3545835a39ae
parentf414ca64be4b36c30deb5b5fa25c5a8ff42ea56b (diff)
parentd825c06bfe8b885b797f917ad47365d0e9c21fbb (diff)
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS fixes from Ralf Baechle: "Another round of MIPS fixes for 4.5: - Fix JZ4780 build with DEBUG_ZBOOT and MACH_JZ4780 - Fix build with DEBUG_ZBOOT and MACH_JZ4780 - Fix issue with uninitialised temp_foreign_map - Fix awk regex compile failure with certain versions of awk. At this time, the sole user, ld-ifversion, is only used on MIPS" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: smp.c: Fix uninitialised temp_foreign_map MIPS: Fix build error when SMP is used without GIC ld-version: Fix awk regex compile failure MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4780
-rw-r--r--arch/mips/Kconfig7
-rw-r--r--arch/mips/boot/compressed/uart-16550.c2
-rw-r--r--arch/mips/kernel/smp.c1
-rwxr-xr-xscripts/ld-version.sh2
4 files changed, 7 insertions, 5 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 74a3db92da1b..d3da79dda629 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2169,7 +2169,7 @@ config MIPS_MT_SMP
2169 select CPU_MIPSR2_IRQ_VI 2169 select CPU_MIPSR2_IRQ_VI
2170 select CPU_MIPSR2_IRQ_EI 2170 select CPU_MIPSR2_IRQ_EI
2171 select SYNC_R4K 2171 select SYNC_R4K
2172 select MIPS_GIC_IPI 2172 select MIPS_GIC_IPI if MIPS_GIC
2173 select MIPS_MT 2173 select MIPS_MT
2174 select SMP 2174 select SMP
2175 select SMP_UP 2175 select SMP_UP
@@ -2267,7 +2267,7 @@ config MIPS_VPE_APSP_API_MT
2267config MIPS_CMP 2267config MIPS_CMP
2268 bool "MIPS CMP framework support (DEPRECATED)" 2268 bool "MIPS CMP framework support (DEPRECATED)"
2269 depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6 2269 depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2270 select MIPS_GIC_IPI 2270 select MIPS_GIC_IPI if MIPS_GIC
2271 select SMP 2271 select SMP
2272 select SYNC_R4K 2272 select SYNC_R4K
2273 select SYS_SUPPORTS_SMP 2273 select SYS_SUPPORTS_SMP
@@ -2287,7 +2287,7 @@ config MIPS_CPS
2287 select MIPS_CM 2287 select MIPS_CM
2288 select MIPS_CPC 2288 select MIPS_CPC
2289 select MIPS_CPS_PM if HOTPLUG_CPU 2289 select MIPS_CPS_PM if HOTPLUG_CPU
2290 select MIPS_GIC_IPI 2290 select MIPS_GIC_IPI if MIPS_GIC
2291 select SMP 2291 select SMP
2292 select SYNC_R4K if (CEVT_R4K || CSRC_R4K) 2292 select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
2293 select SYS_SUPPORTS_HOTPLUG_CPU 2293 select SYS_SUPPORTS_HOTPLUG_CPU
@@ -2306,6 +2306,7 @@ config MIPS_CPS_PM
2306 bool 2306 bool
2307 2307
2308config MIPS_GIC_IPI 2308config MIPS_GIC_IPI
2309 depends on MIPS_GIC
2309 bool 2310 bool
2310 2311
2311config MIPS_CM 2312config MIPS_CM
diff --git a/arch/mips/boot/compressed/uart-16550.c b/arch/mips/boot/compressed/uart-16550.c
index 408799a839b4..f7521142deda 100644
--- a/arch/mips/boot/compressed/uart-16550.c
+++ b/arch/mips/boot/compressed/uart-16550.c
@@ -17,7 +17,7 @@
17#define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) 17#define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset))
18#endif 18#endif
19 19
20#ifdef CONFIG_MACH_JZ4740 20#if defined(CONFIG_MACH_JZ4740) || defined(CONFIG_MACH_JZ4780)
21#include <asm/mach-jz4740/base.h> 21#include <asm/mach-jz4740/base.h>
22#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset)) 22#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset))
23#endif 23#endif
diff --git a/arch/mips/kernel/smp.c b/arch/mips/kernel/smp.c
index bd4385a8e6e8..2b521e07b860 100644
--- a/arch/mips/kernel/smp.c
+++ b/arch/mips/kernel/smp.c
@@ -121,6 +121,7 @@ static inline void calculate_cpu_foreign_map(void)
121 cpumask_t temp_foreign_map; 121 cpumask_t temp_foreign_map;
122 122
123 /* Re-calculate the mask */ 123 /* Re-calculate the mask */
124 cpumask_clear(&temp_foreign_map);
124 for_each_online_cpu(i) { 125 for_each_online_cpu(i) {
125 core_present = 0; 126 core_present = 0;
126 for_each_cpu(k, &temp_foreign_map) 127 for_each_cpu(k, &temp_foreign_map)
diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh
index d154f0877fd8..7bfe9fa1c8dc 100755
--- a/scripts/ld-version.sh
+++ b/scripts/ld-version.sh
@@ -1,7 +1,7 @@
1#!/usr/bin/awk -f 1#!/usr/bin/awk -f
2# extract linker version number from stdin and turn into single number 2# extract linker version number from stdin and turn into single number
3 { 3 {
4 gsub(".*)", ""); 4 gsub(".*\\)", "");
5 gsub(".*version ", ""); 5 gsub(".*version ", "");
6 gsub("-.*", ""); 6 gsub("-.*", "");
7 split($1,a, "."); 7 split($1,a, ".");