Skip to content

Commit d378aca

Browse files
author
Jeff Garzik
committed
Merge branch 'master'
2 parents abc71c4 + 7705a87 commit d378aca

37 files changed

Lines changed: 332 additions & 185 deletions

File tree

‎CREDITS‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ D: Author of lil (Linux Interrupt Latency benchmark)
120120
D: Fixed the shm swap deallocation at swapoff time (try_to_unuse message)
121121
D: VM hacker
122122
D: Various other kernel hacks
123-
S: Via Cicalini 26
124123
S: Imola 40026
125124
S: Italy
126125

‎MAINTAINERS‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,8 @@ P: Ralf Baechle
17521752
M: ralf@linux-mips.org
17531753
W: http://www.linux-mips.org/
17541754
L: linux-mips@linux-mips.org
1755-
S: Maintained
1755+
T: git www.linux-mips.org:/pub/scm/linux.git
1756+
S: Supported
17561757

17571758
MISCELLANEOUS MCA-SUPPORT
17581759
P: James Bottomley

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VERSION = 2
22
PATCHLEVEL = 6
33
SUBLEVEL = 16
4-
EXTRAVERSION =-rc6
4+
EXTRAVERSION =
55
NAME=Sliding Snow Leopard
66

77
# *DOCUMENTATION*

‎arch/i386/kernel/smpboot.c‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,16 @@ int __devinit smp_prepare_cpu(int cpu)
10291029
int apicid, ret;
10301030

10311031
lock_cpu_hotplug();
1032+
1033+
/*
1034+
* On x86, CPU0 is never offlined. Trying to bring up an
1035+
* already-booted CPU will hang. So check for that case.
1036+
*/
1037+
if (cpu_online(cpu)) {
1038+
ret = -EINVAL;
1039+
goto exit;
1040+
}
1041+
10321042
apicid = x86_cpu_to_apicid[cpu];
10331043
if (apicid == BAD_APICID) {
10341044
ret = -ENODEV;

‎arch/mips/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ MODFLAGS += -mlong-calls
108108
cflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' && echo -EB)
109109
cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL)
110110

111-
cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer
111+
cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \
112+
-fno-omit-frame-pointer
112113

113114
#
114115
# Use: $(call set_gccflags,<cpu0>,<isa0>,<cpu1>,<isa1>,<isa2>)

‎arch/mips/arc/misc.c‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
* Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
1010
* Copyright (C) 1999 Silicon Graphics, Inc.
1111
*/
12-
#include <linux/config.h>
1312
#include <linux/init.h>
1413
#include <linux/kernel.h>
1514

@@ -20,17 +19,11 @@
2019
#include <asm/bootinfo.h>
2120
#include <asm/system.h>
2221

23-
extern void *sgiwd93_host;
24-
extern void reset_wd33c93(void *instance);
25-
2622
VOID
2723
ArcHalt(VOID)
2824
{
2925
bc_disable();
3026
local_irq_disable();
31-
#ifdef CONFIG_SCSI_SGIWD93
32-
reset_wd33c93(sgiwd93_host);
33-
#endif
3427
ARC_CALL0(halt);
3528
never: goto never;
3629
}
@@ -40,9 +33,6 @@ ArcPowerDown(VOID)
4033
{
4134
bc_disable();
4235
local_irq_disable();
43-
#ifdef CONFIG_SCSI_SGIWD93
44-
reset_wd33c93(sgiwd93_host);
45-
#endif
4636
ARC_CALL0(pdown);
4737
never: goto never;
4838
}
@@ -53,9 +43,6 @@ ArcRestart(VOID)
5343
{
5444
bc_disable();
5545
local_irq_disable();
56-
#ifdef CONFIG_SCSI_SGIWD93
57-
reset_wd33c93(sgiwd93_host);
58-
#endif
5946
ARC_CALL0(restart);
6047
never: goto never;
6148
}
@@ -65,9 +52,6 @@ ArcReboot(VOID)
6552
{
6653
bc_disable();
6754
local_irq_disable();
68-
#ifdef CONFIG_SCSI_SGIWD93
69-
reset_wd33c93(sgiwd93_host);
70-
#endif
7155
ARC_CALL0(reboot);
7256
never: goto never;
7357
}
@@ -77,9 +61,6 @@ ArcEnterInteractiveMode(VOID)
7761
{
7862
bc_disable();
7963
local_irq_disable();
80-
#ifdef CONFIG_SCSI_SGIWD93
81-
reset_wd33c93(sgiwd93_host);
82-
#endif
8364
ARC_CALL0(imode);
8465
never: goto never;
8566
}

‎arch/mips/au1000/common/reset.c‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,20 @@ void au1000_restart(char *command)
164164

165165
void au1000_halt(void)
166166
{
167-
#if defined(CONFIG_MIPS_PB1550)
167+
#if defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550)
168168
/* power off system */
169-
printk("\n** Powering off Pb1550\n");
169+
printk("\n** Powering off...\n");
170170
au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C);
171171
au_sync();
172172
while(1); /* should not get here */
173-
#endif
173+
#else
174174
printk(KERN_NOTICE "\n** You can safely turn off the power\n");
175175
#ifdef CONFIG_MIPS_MIRAGE
176176
au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
177177
#endif
178+
#ifdef CONFIG_MIPS_DB1200
179+
au_writew(au_readw(0xB980001C) | (1<<14), 0xB980001C);
180+
#endif
178181
#ifdef CONFIG_PM
179182
au_sleep();
180183

@@ -187,6 +190,7 @@ void au1000_halt(void)
187190
"wait\n\t"
188191
".set\tmips0");
189192
#endif
193+
#endif /* defined(CONFIG_MIPS_PB1550) || defined(CONFIG_MIPS_DB1550) */
190194
}
191195

192196
void au1000_power_off(void)

‎arch/mips/kernel/time.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
424424
unsigned long j;
425425
unsigned int count;
426426

427+
write_seqlock(&xtime_lock);
428+
427429
count = mips_hpt_read();
428430
mips_timer_ack();
429431

@@ -441,7 +443,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
441443
* CMOS clock accordingly every ~11 minutes. rtc_set_time() has to be
442444
* called as close as possible to 500 ms before the new second starts.
443445
*/
444-
write_seqlock(&xtime_lock);
445446
if (ntp_synced() &&
446447
xtime.tv_sec > last_rtc_update + 660 &&
447448
(xtime.tv_nsec / 1000) >= 500000 - ((unsigned) TICK_SIZE) / 2 &&
@@ -453,7 +454,6 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
453454
last_rtc_update = xtime.tv_sec - 600;
454455
}
455456
}
456-
write_sequnlock(&xtime_lock);
457457

458458
/*
459459
* If jiffies has overflown in this timer_interrupt, we must
@@ -496,6 +496,8 @@ irqreturn_t timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
496496
}
497497
}
498498

499+
write_sequnlock(&xtime_lock);
500+
499501
/*
500502
* In UP mode, we call local_timer_interrupt() to do profiling
501503
* and process accouting.

‎arch/mips/mm/c-r4k.c‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,15 @@ static void r4k_flush_cache_mm(struct mm_struct *mm)
375375
struct flush_cache_page_args {
376376
struct vm_area_struct *vma;
377377
unsigned long addr;
378+
unsigned long pfn;
378379
};
379380

380381
static inline void local_r4k_flush_cache_page(void *args)
381382
{
382383
struct flush_cache_page_args *fcp_args = args;
383384
struct vm_area_struct *vma = fcp_args->vma;
384385
unsigned long addr = fcp_args->addr;
386+
unsigned long paddr = fcp_args->pfn << PAGE_SHIFT;
385387
int exec = vma->vm_flags & VM_EXEC;
386388
struct mm_struct *mm = vma->vm_mm;
387389
pgd_t *pgdp;
@@ -431,11 +433,12 @@ static inline void local_r4k_flush_cache_page(void *args)
431433
* Do indexed flush, too much work to get the (possible) TLB refills
432434
* to work correctly.
433435
*/
434-
addr = INDEX_BASE + (addr & (dcache_size - 1));
435436
if (cpu_has_dc_aliases || (exec && !cpu_has_ic_fills_f_dc)) {
436-
r4k_blast_dcache_page_indexed(addr);
437-
if (exec && !cpu_icache_snoops_remote_store)
438-
r4k_blast_scache_page_indexed(addr);
437+
r4k_blast_dcache_page_indexed(cpu_has_pindexed_dcache ?
438+
paddr : addr);
439+
if (exec && !cpu_icache_snoops_remote_store) {
440+
r4k_blast_scache_page_indexed(paddr);
441+
}
439442
}
440443
if (exec) {
441444
if (cpu_has_vtag_icache) {
@@ -455,6 +458,7 @@ static void r4k_flush_cache_page(struct vm_area_struct *vma,
455458

456459
args.vma = vma;
457460
args.addr = addr;
461+
args.pfn = pfn;
458462

459463
on_each_cpu(local_r4k_flush_cache_page, &args, 1, 1);
460464
}
@@ -956,6 +960,7 @@ static void __init probe_pcache(void)
956960
switch (c->cputype) {
957961
case CPU_20KC:
958962
case CPU_25KF:
963+
c->dcache.flags |= MIPS_CACHE_PINDEX;
959964
case CPU_R10000:
960965
case CPU_R12000:
961966
case CPU_SB1:

‎arch/mips/mm/c-tx39.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ static void tx39_flush_cache_page(struct vm_area_struct *vma, unsigned long page
210210
* Do indexed flush, too much work to get the (possible) TLB refills
211211
* to work correctly.
212212
*/
213-
page = (KSEG0 + (page & (dcache_size - 1)));
214213
if (cpu_has_dc_aliases || exec)
215214
tx39_blast_dcache_page_indexed(page);
216215
if (exec)

0 commit comments

Comments
 (0)