Skip to content

Commit a265554

Browse files
committed
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
2 parents f414ca6 + d825c06 commit a265554

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

arch/mips/Kconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,7 @@ config MIPS_MT_SMP
21692169
select CPU_MIPSR2_IRQ_VI
21702170
select CPU_MIPSR2_IRQ_EI
21712171
select SYNC_R4K
2172-
select MIPS_GIC_IPI
2172+
select MIPS_GIC_IPI if MIPS_GIC
21732173
select MIPS_MT
21742174
select SMP
21752175
select SMP_UP
@@ -2267,7 +2267,7 @@ config MIPS_VPE_APSP_API_MT
22672267
config MIPS_CMP
22682268
bool "MIPS CMP framework support (DEPRECATED)"
22692269
depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2270-
select MIPS_GIC_IPI
2270+
select MIPS_GIC_IPI if MIPS_GIC
22712271
select SMP
22722272
select SYNC_R4K
22732273
select SYS_SUPPORTS_SMP
@@ -2287,7 +2287,7 @@ config MIPS_CPS
22872287
select MIPS_CM
22882288
select MIPS_CPC
22892289
select MIPS_CPS_PM if HOTPLUG_CPU
2290-
select MIPS_GIC_IPI
2290+
select MIPS_GIC_IPI if MIPS_GIC
22912291
select SMP
22922292
select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
22932293
select SYS_SUPPORTS_HOTPLUG_CPU
@@ -2306,6 +2306,7 @@ config MIPS_CPS_PM
23062306
bool
23072307

23082308
config MIPS_GIC_IPI
2309+
depends on MIPS_GIC
23092310
bool
23102311

23112312
config MIPS_CM

arch/mips/boot/compressed/uart-16550.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset))
1818
#endif
1919

20-
#ifdef CONFIG_MACH_JZ4740
20+
#if defined(CONFIG_MACH_JZ4740) || defined(CONFIG_MACH_JZ4780)
2121
#include <asm/mach-jz4740/base.h>
2222
#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset))
2323
#endif

arch/mips/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ static inline void calculate_cpu_foreign_map(void)
121121
cpumask_t temp_foreign_map;
122122

123123
/* Re-calculate the mask */
124+
cpumask_clear(&temp_foreign_map);
124125
for_each_online_cpu(i) {
125126
core_present = 0;
126127
for_each_cpu(k, &temp_foreign_map)

scripts/ld-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/awk -f
22
# extract linker version number from stdin and turn into single number
33
{
4-
gsub(".*)", "");
4+
gsub(".*\\)", "");
55
gsub(".*version ", "");
66
gsub("-.*", "");
77
split($1,a, ".");

0 commit comments

Comments
 (0)