Skip to content

Commit a9523f4

Browse files
committed
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: MIPS: 64-bit: Fix system lockup. MIPS: IP28: Change to build with -mr10k-cache-barrier=store MIPS: IP22: Fix hang in power button interrupt handler MIPS: IP32: Fix hang on shutdown in power button interrupt handler.
2 parents 9fe02c0 + a5e696e commit a9523f4

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

arch/mips/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,12 @@ endif
473473
# Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys
474474
#
475475
ifdef CONFIG_SGI_IP28
476-
ifeq ($(call cc-option-yn,-mr10k-cache-barrier=1), n)
477-
$(error gcc doesn't support needed option -mr10k-cache-barrier=1)
476+
ifeq ($(call cc-option-yn,-mr10k-cache-barrier=store), n)
477+
$(error gcc doesn't support needed option -mr10k-cache-barrier=store)
478478
endif
479479
endif
480480
core-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/
481-
cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=1 -I$(srctree)/arch/mips/include/asm/mach-ip28
481+
cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28
482482
load-$(CONFIG_SGI_IP28) += 0xa800000020004000
483483

484484
#

arch/mips/mm/tlb-r3k.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
8282
int cpu = smp_processor_id();
8383

8484
if (cpu_context(cpu, mm) != 0) {
85-
unsigned long flags;
86-
int size;
85+
unsigned long size, flags;
8786

8887
#ifdef DEBUG_TLB
8988
printk("[tlbrange<%lu,0x%08lx,0x%08lx>]",
@@ -121,8 +120,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
121120

122121
void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
123122
{
124-
unsigned long flags;
125-
int size;
123+
unsigned long size, flags;
126124

127125
#ifdef DEBUG_TLB
128126
printk("[tlbrange<%lu,0x%08lx,0x%08lx>]", start, end);

arch/mips/mm/tlb-r4k.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
117117
int cpu = smp_processor_id();
118118

119119
if (cpu_context(cpu, mm) != 0) {
120-
unsigned long flags;
121-
int size;
120+
unsigned long size, flags;
122121

123122
ENTER_CRITICAL(flags);
124123
size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT;
@@ -160,8 +159,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
160159

161160
void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
162161
{
163-
unsigned long flags;
164-
int size;
162+
unsigned long size, flags;
165163

166164
ENTER_CRITICAL(flags);
167165
size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT;

arch/mips/mm/tlb-r8k.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
111111
/* Usable for KV1 addresses only! */
112112
void local_flush_tlb_kernel_range(unsigned long start, unsigned long end)
113113
{
114-
unsigned long flags;
115-
int size;
114+
unsigned long size, flags;
116115

117116
size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT;
118117
size = (size + 1) >> 1;

arch/mips/sgi-ip22/ip22-reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static irqreturn_t panel_int(int irq, void *dev_id)
148148

149149
if (sgint->istat1 & SGINT_ISTAT1_PWR) {
150150
/* Wait until interrupt goes away */
151-
disable_irq(SGI_PANEL_IRQ);
151+
disable_irq_nosync(SGI_PANEL_IRQ);
152152
init_timer(&debounce_timer);
153153
debounce_timer.function = debounce;
154154
debounce_timer.expires = jiffies + 5;

arch/mips/sgi-ip32/ip32-reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static irqreturn_t ip32_rtc_int(int irq, void *dev_id)
145145
"%s: RTC IRQ without RTC_IRQF\n", __func__);
146146
}
147147
/* Wait until interrupt goes away */
148-
disable_irq(MACEISA_RTC_IRQ);
148+
disable_irq_nosync(MACEISA_RTC_IRQ);
149149
init_timer(&debounce_timer);
150150
debounce_timer.function = debounce;
151151
debounce_timer.expires = jiffies + 50;

0 commit comments

Comments
 (0)