Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75483
b: refs/heads/master
c: 5d5d800
h: refs/heads/master
i:
  75481: fc4ab8d
  75479: 7f5b3c5
v: v3
  • Loading branch information
Linus Torvalds committed Jan 15, 2008
1 parent 5036ed0 commit b9fa865
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d8cf5389bd9d1f0ac9fea51796c274ba64b83d80
refs/heads/master: 5d5d80001df3fbd06bd2b8893b6e3847e38a12d6
2 changes: 2 additions & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ config BCM47XX
select SYS_SUPPORTS_LITTLE_ENDIAN
select SSB
select SSB_DRIVER_MIPS
select SSB_DRIVER_EXTIF
select SSB_PCICORE_HOSTMODE if PCI
select GENERIC_GPIO
select SYS_HAS_EARLY_PRINTK
select CFE
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/mips/cobalt/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
#include <linux/io.h>
#include <linux/serial_reg.h>

#include <cobalt.h>

#define UART_BASE ((void __iomem *)CKSEG1ADDR(0x1c800000))

void prom_putchar(char c)
{
if (cobalt_board_id <= COBALT_BRD_ID_QUBE1)
return;

while (!(readb(UART_BASE + UART_LSR) & UART_LSR_THRE))
;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/pci/fixup-cobalt.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static char irq_tab_raq2[] __initdata = {

int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (cobalt_board_id < COBALT_BRD_ID_QUBE2)
if (cobalt_board_id <= COBALT_BRD_ID_QUBE1)
return irq_tab_qube1[slot];

if (cobalt_board_id == COBALT_BRD_ID_RAQ2)
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/fs-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ sync_sb_inodes(struct super_block *sb, struct writeback_control *wbc)
if (wbc->nr_to_write <= 0)
break;
}
if (!list_empty(&sb->s_more_io))
wbc->more_io = 1;
return; /* Leave any unwritten inodes on s_io */
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-mips/cacheops.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
#define Page_Invalidate_T 0x16

/*
* R1000-specific cacheops
* R10000-specific cacheops
*
* Cacheops 0x02, 0x06, 0x0a, 0x0c-0x0e, 0x16, 0x1a and 0x1e are unused.
* Most of the _S cacheops are identical to the R4000SC _SD cacheops.
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/writeback.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ struct writeback_control {
unsigned for_reclaim:1; /* Invoked from the page allocator */
unsigned for_writepages:1; /* This is a writepages() call */
unsigned range_cyclic:1; /* range_start is cyclic */
unsigned more_io:1; /* more io to be dispatched */
};

/*
Expand Down
9 changes: 3 additions & 6 deletions trunk/mm/page-writeback.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,17 +558,15 @@ static void background_writeout(unsigned long _min_pages)
global_page_state(NR_UNSTABLE_NFS) < background_thresh
&& min_pages <= 0)
break;
wbc.more_io = 0;
wbc.encountered_congestion = 0;
wbc.nr_to_write = MAX_WRITEBACK_PAGES;
wbc.pages_skipped = 0;
writeback_inodes(&wbc);
min_pages -= MAX_WRITEBACK_PAGES - wbc.nr_to_write;
if (wbc.nr_to_write > 0 || wbc.pages_skipped > 0) {
/* Wrote less than expected */
if (wbc.encountered_congestion || wbc.more_io)
congestion_wait(WRITE, HZ/10);
else
congestion_wait(WRITE, HZ/10);
if (!wbc.encountered_congestion)
break;
}
}
Expand Down Expand Up @@ -633,12 +631,11 @@ static void wb_kupdate(unsigned long arg)
global_page_state(NR_UNSTABLE_NFS) +
(inodes_stat.nr_inodes - inodes_stat.nr_unused);
while (nr_to_write > 0) {
wbc.more_io = 0;
wbc.encountered_congestion = 0;
wbc.nr_to_write = MAX_WRITEBACK_PAGES;
writeback_inodes(&wbc);
if (wbc.nr_to_write > 0) {
if (wbc.encountered_congestion || wbc.more_io)
if (wbc.encountered_congestion)
congestion_wait(WRITE, HZ/10);
else
break; /* All the old data is written */
Expand Down

0 comments on commit b9fa865

Please sign in to comment.