Skip to content

Commit 4d85419

Browse files
committed
Merge branch '3.11-fixes' into mips-for-linux-next
2 parents 12d14e0 + f7c1285 commit 4d85419

File tree

10 files changed

+18
-54
lines changed

10 files changed

+18
-54
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ config BCM63XX
132132
select IRQ_CPU
133133
select SYS_HAS_CPU_MIPS32_R1
134134
select SYS_HAS_CPU_BMIPS4350 if !BCM63XX_CPU_6338 && !BCM63XX_CPU_6345 && !BCM63XX_CPU_6348
135-
select NR_CPUS_DEFAULT_2
136135
select SYS_SUPPORTS_32BIT_KERNEL
137136
select SYS_SUPPORTS_BIG_ENDIAN
138137
select SYS_HAS_EARLY_PRINTK
@@ -612,7 +611,6 @@ config SIBYTE_SWARM
612611
select BOOT_ELF32
613612
select DMA_COHERENT
614613
select HAVE_PATA_PLATFORM
615-
select NR_CPUS_DEFAULT_2
616614
select SIBYTE_SB1250
617615
select SWAP_IO_SPACE
618616
select SYS_HAS_CPU_SB1
@@ -626,7 +624,6 @@ config SIBYTE_LITTLESUR
626624
select BOOT_ELF32
627625
select DMA_COHERENT
628626
select HAVE_PATA_PLATFORM
629-
select NR_CPUS_DEFAULT_2
630627
select SIBYTE_SB1250
631628
select SWAP_IO_SPACE
632629
select SYS_HAS_CPU_SB1
@@ -638,7 +635,6 @@ config SIBYTE_SENTOSA
638635
bool "Sibyte BCM91250E-Sentosa"
639636
select BOOT_ELF32
640637
select DMA_COHERENT
641-
select NR_CPUS_DEFAULT_2
642638
select SIBYTE_SB1250
643639
select SWAP_IO_SPACE
644640
select SYS_HAS_CPU_SB1
@@ -1866,7 +1862,6 @@ config MIPS_MT_SMP
18661862
select CPU_MIPSR2_IRQ_VI
18671863
select CPU_MIPSR2_IRQ_EI
18681864
select MIPS_MT
1869-
select NR_CPUS_DEFAULT_2
18701865
select SMP
18711866
select SYS_SUPPORTS_SCHED_SMT if SMP
18721867
select SYS_SUPPORTS_SMP
@@ -2177,12 +2172,6 @@ config SYS_SUPPORTS_MIPS_CMP
21772172
config SYS_SUPPORTS_SMP
21782173
bool
21792174

2180-
config NR_CPUS_DEFAULT_1
2181-
bool
2182-
2183-
config NR_CPUS_DEFAULT_2
2184-
bool
2185-
21862175
config NR_CPUS_DEFAULT_4
21872176
bool
21882177

@@ -2200,10 +2189,8 @@ config NR_CPUS_DEFAULT_64
22002189

22012190
config NR_CPUS
22022191
int "Maximum number of CPUs (2-64)"
2203-
range 1 64 if NR_CPUS_DEFAULT_1
2192+
range 2 64
22042193
depends on SMP
2205-
default "1" if NR_CPUS_DEFAULT_1
2206-
default "2" if NR_CPUS_DEFAULT_2
22072194
default "4" if NR_CPUS_DEFAULT_4
22082195
default "8" if NR_CPUS_DEFAULT_8
22092196
default "16" if NR_CPUS_DEFAULT_16

arch/mips/kernel/mcount.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ _mcount:
8383
PTR_S MCOUNT_RA_ADDRESS_REG, PT_R12(sp)
8484
#endif
8585

86-
move a0, ra /* arg1: self return address */
86+
PTR_SUBU a0, ra, 8 /* arg1: self address */
8787
.globl ftrace_call
8888
ftrace_call:
8989
nop /* a placeholder for the call to a real tracing function */

arch/mips/kernel/time.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ void __init time_init(void)
121121
{
122122
plat_time_init();
123123

124-
if (!mips_clockevent_init() || !cpu_has_mfc0_count_bug())
124+
/*
125+
* The use of the R4k timer as a clock event takes precedence;
126+
* if reading the Count register might interfere with the timer
127+
* interrupt, then we don't use the timer as a clock source.
128+
* We may still use the timer as a clock source though if the
129+
* timer interrupt isn't reliable; the interference doesn't
130+
* matter then, because we don't use the interrupt.
131+
*/
132+
if (mips_clockevent_init() != 0 || !cpu_has_mfc0_count_bug())
125133
init_mips_clocksource();
126134
}

arch/mips/loongson/common/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#
44

55
obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
6-
pci.o bonito-irq.o mem.o machtype.o platform.o
6+
bonito-irq.o mem.o machtype.o platform.o
77
obj-$(CONFIG_GPIOLIB) += gpio.o
8+
obj-$(CONFIG_PCI) += pci.o
89

910
#
1011
# Serial port support

arch/mips/mm/gup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/swap.h>
1313
#include <linux/hugetlb.h>
1414

15+
#include <asm/cpu-features.h>
1516
#include <asm/pgtable.h>
1617

1718
static inline pte_t gup_get_pte(pte_t *ptep)
@@ -273,7 +274,7 @@ int get_user_pages_fast(unsigned long start, int nr_pages, int write,
273274
len = (unsigned long) nr_pages << PAGE_SHIFT;
274275

275276
end = start + len;
276-
if (end < start)
277+
if (end < start || cpu_has_dc_aliases)
277278
goto slow_irqon;
278279

279280
/* XXX: batch / limit 'nr' */

arch/mips/powertv/Kconfig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
config BOOTLOADER_DRIVER
2-
bool "PowerTV Bootloader Driver Support"
3-
default n
4-
depends on POWERTV
5-
help
6-
Use this option if you want to load bootloader driver.
7-
81
config BOOTLOADER_FAMILY
92
string "POWERTV Bootloader Family string"
103
default "85"
11-
depends on POWERTV && !BOOTLOADER_DRIVER
4+
depends on POWERTV
125
help
136
This value should be specified when the bootloader driver is disabled
147
and must be exactly two characters long. Families supported are:

arch/mips/powertv/asic/asic_devices.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,20 +147,10 @@ static __init noinline void platform_set_family(void)
147147
if (check_forcefamily(forced_family) == 0)
148148
bootldr_family = BOOTLDRFAMILY(forced_family[0],
149149
forced_family[1]);
150-
else {
151-
152-
#ifdef CONFIG_BOOTLOADER_DRIVER
153-
bootldr_family = (unsigned short) kbldr_GetSWFamily();
154-
#else
155-
#if defined(CONFIG_BOOTLOADER_FAMILY)
150+
else
156151
bootldr_family = (unsigned short) BOOTLDRFAMILY(
157152
CONFIG_BOOTLOADER_FAMILY[0],
158153
CONFIG_BOOTLOADER_FAMILY[1]);
159-
#else
160-
#error "Unknown Bootloader Family"
161-
#endif
162-
#endif
163-
}
164154

165155
pr_info("Bootloader Family = 0x%04X\n", bootldr_family);
166156

arch/mips/powertv/init.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,4 @@ void __init prom_init(void)
8787

8888
configure_platform();
8989
prom_meminit();
90-
91-
#ifndef CONFIG_BOOTLOADER_DRIVER
92-
pr_info("\nBootloader driver isn't loaded...\n");
93-
#endif
9490
}

arch/mips/powertv/reset.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,12 @@
2121
#include <linux/io.h>
2222
#include <asm/reboot.h> /* Not included by linux/reboot.h */
2323

24-
#ifdef CONFIG_BOOTLOADER_DRIVER
25-
#include <asm/mach-powertv/kbldr.h>
26-
#endif
27-
2824
#include <asm/mach-powertv/asic_regs.h>
2925
#include "reset.h"
3026

3127
static void mips_machine_restart(char *command)
3228
{
33-
#ifdef CONFIG_BOOTLOADER_DRIVER
34-
/*
35-
* Call the bootloader's reset function to ensure
36-
* that persistent data is flushed before hard reset
37-
*/
38-
kbldr_SetCauseAndReset();
39-
#else
4029
writel(0x1, asic_reg_addr(watchdog));
41-
#endif
4230
}
4331

4432
void mips_reboot_setup(void)

arch/mips/txx9/generic/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static void __init select_board(void)
350350
}
351351

352352
/* select "default" board */
353-
#ifdef CONFIG_CPU_TX39XX
353+
#ifdef CONFIG_TOSHIBA_JMR3927
354354
txx9_board_vec = &jmr3927_vec;
355355
#endif
356356
#ifdef CONFIG_CPU_TX49XX

0 commit comments

Comments
 (0)