Commit 48ae6c29 authored by David S. Miller's avatar David S. Miller

Merge nuts.davemloft.net:/disk1/BK/network-2.6

into nuts.davemloft.net:/disk1/BK/net-2.6
parents adf07569 664d4fca
...@@ -50,10 +50,6 @@ ...@@ -50,10 +50,6 @@
#define _INLINE_ inline #define _INLINE_ inline
#endif #endif
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
#define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT) #define IRQ_T(info) ((info->flags & ASYNC_SHARE_IRQ) ? SA_SHIRQ : SA_INTERRUPT)
#define SSC_GETCHAR 21 #define SSC_GETCHAR 21
...@@ -275,7 +271,7 @@ static _INLINE_ void transmit_chars(struct async_struct *info, int *intr_done) ...@@ -275,7 +271,7 @@ static _INLINE_ void transmit_chars(struct async_struct *info, int *intr_done)
* Then from the beginning of the buffer until necessary * Then from the beginning of the buffer until necessary
*/ */
count = MIN(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE), count = min(CIRC_CNT(info->xmit.head, info->xmit.tail, SERIAL_XMIT_SIZE),
SERIAL_XMIT_SIZE - info->xmit.tail); SERIAL_XMIT_SIZE - info->xmit.tail);
console->write(console, info->xmit.buf+info->xmit.tail, count); console->write(console, info->xmit.buf+info->xmit.tail, count);
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
void (*pm_idle) (void); void (*pm_idle) (void);
EXPORT_SYMBOL(pm_idle); EXPORT_SYMBOL(pm_idle);
void (*pm_power_off) (void); void (*pm_power_off) (void);
EXPORT_SYMBOL(pm_power_off);
unsigned char acpi_kbd_controller_present = 1; unsigned char acpi_kbd_controller_present = 1;
unsigned char acpi_legacy_devices; unsigned char acpi_legacy_devices;
......
...@@ -84,11 +84,13 @@ irq_desc_t _irq_desc[NR_IRQS] __cacheline_aligned = { ...@@ -84,11 +84,13 @@ irq_desc_t _irq_desc[NR_IRQS] __cacheline_aligned = {
} }
}; };
#ifdef CONFIG_SMP
/* /*
* This is updated when the user sets irq affinity via /proc * This is updated when the user sets irq affinity via /proc
*/ */
cpumask_t __cacheline_aligned pending_irq_cpumask[NR_IRQS]; cpumask_t __cacheline_aligned pending_irq_cpumask[NR_IRQS];
static unsigned long pending_irq_redir[BITS_TO_LONGS(NR_IRQS)]; static unsigned long pending_irq_redir[BITS_TO_LONGS(NR_IRQS)];
#endif
#ifdef CONFIG_IA64_GENERIC #ifdef CONFIG_IA64_GENERIC
irq_desc_t * __ia64_irq_desc (unsigned int irq) irq_desc_t * __ia64_irq_desc (unsigned int irq)
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
#include "entry.h" #include "entry.h"
#include "unwind_i.h" #include "unwind_i.h"
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define p5 5 #define p5 5
#define UNW_LOG_CACHE_SIZE 7 /* each unw_script is ~256 bytes in size */ #define UNW_LOG_CACHE_SIZE 7 /* each unw_script is ~256 bytes in size */
...@@ -963,13 +962,13 @@ static inline void ...@@ -963,13 +962,13 @@ static inline void
desc_mem_stack_f (unw_word t, unw_word size, struct unw_state_record *sr) desc_mem_stack_f (unw_word t, unw_word size, struct unw_state_record *sr)
{ {
set_reg(sr->curr.reg + UNW_REG_PSP, UNW_WHERE_NONE, set_reg(sr->curr.reg + UNW_REG_PSP, UNW_WHERE_NONE,
sr->region_start + MIN((int)t, sr->region_len - 1), 16*size); sr->region_start + min_t(int, t, sr->region_len - 1), 16*size);
} }
static inline void static inline void
desc_mem_stack_v (unw_word t, struct unw_state_record *sr) desc_mem_stack_v (unw_word t, struct unw_state_record *sr)
{ {
sr->curr.reg[UNW_REG_PSP].when = sr->region_start + MIN((int)t, sr->region_len - 1); sr->curr.reg[UNW_REG_PSP].when = sr->region_start + min_t(int, t, sr->region_len - 1);
} }
static inline void static inline void
...@@ -1005,7 +1004,7 @@ desc_reg_when (unsigned char regnum, unw_word t, struct unw_state_record *sr) ...@@ -1005,7 +1004,7 @@ desc_reg_when (unsigned char regnum, unw_word t, struct unw_state_record *sr)
if (reg->where == UNW_WHERE_NONE) if (reg->where == UNW_WHERE_NONE)
reg->where = UNW_WHERE_GR_SAVE; reg->where = UNW_WHERE_GR_SAVE;
reg->when = sr->region_start + MIN((int)t, sr->region_len - 1); reg->when = sr->region_start + min_t(int, t, sr->region_len - 1);
} }
static inline void static inline void
...@@ -1073,7 +1072,7 @@ desc_label_state (unw_word label, struct unw_state_record *sr) ...@@ -1073,7 +1072,7 @@ desc_label_state (unw_word label, struct unw_state_record *sr)
static inline int static inline int
desc_is_active (unsigned char qp, unw_word t, struct unw_state_record *sr) desc_is_active (unsigned char qp, unw_word t, struct unw_state_record *sr)
{ {
if (sr->when_target <= sr->region_start + MIN((int)t, sr->region_len - 1)) if (sr->when_target <= sr->region_start + min_t(int, t, sr->region_len - 1))
return 0; return 0;
if (qp > 0) { if (qp > 0) {
if ((sr->pr_val & (1UL << qp)) == 0) if ((sr->pr_val & (1UL << qp)) == 0)
...@@ -1114,7 +1113,7 @@ desc_spill_reg_p (unsigned char qp, unw_word t, unsigned char abreg, unsigned ch ...@@ -1114,7 +1113,7 @@ desc_spill_reg_p (unsigned char qp, unw_word t, unsigned char abreg, unsigned ch
r = sr->curr.reg + decode_abreg(abreg, 0); r = sr->curr.reg + decode_abreg(abreg, 0);
r->where = where; r->where = where;
r->when = sr->region_start + MIN((int)t, sr->region_len - 1); r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r->val = (ytreg & 0x7f); r->val = (ytreg & 0x7f);
} }
...@@ -1129,7 +1128,7 @@ desc_spill_psprel_p (unsigned char qp, unw_word t, unsigned char abreg, unw_word ...@@ -1129,7 +1128,7 @@ desc_spill_psprel_p (unsigned char qp, unw_word t, unsigned char abreg, unw_word
r = sr->curr.reg + decode_abreg(abreg, 1); r = sr->curr.reg + decode_abreg(abreg, 1);
r->where = UNW_WHERE_PSPREL; r->where = UNW_WHERE_PSPREL;
r->when = sr->region_start + MIN((int)t, sr->region_len - 1); r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r->val = 0x10 - 4*pspoff; r->val = 0x10 - 4*pspoff;
} }
...@@ -1144,7 +1143,7 @@ desc_spill_sprel_p (unsigned char qp, unw_word t, unsigned char abreg, unw_word ...@@ -1144,7 +1143,7 @@ desc_spill_sprel_p (unsigned char qp, unw_word t, unsigned char abreg, unw_word
r = sr->curr.reg + decode_abreg(abreg, 1); r = sr->curr.reg + decode_abreg(abreg, 1);
r->where = UNW_WHERE_SPREL; r->where = UNW_WHERE_SPREL;
r->when = sr->region_start + MIN((int)t, sr->region_len - 1); r->when = sr->region_start + min_t(int, t, sr->region_len - 1);
r->val = 4*spoff; r->val = 4*spoff;
} }
......
...@@ -492,14 +492,17 @@ void *per_cpu_init(void) ...@@ -492,14 +492,17 @@ void *per_cpu_init(void)
*/ */
void show_mem(void) void show_mem(void)
{ {
int i, reserved = 0; int i, total_reserved = 0;
int shared = 0, cached = 0; int total_shared = 0, total_cached = 0;
unsigned long total_present = 0;
pg_data_t *pgdat; pg_data_t *pgdat;
printk("Mem-info:\n"); printk("Mem-info:\n");
show_free_areas(); show_free_areas();
printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10)); printk("Free swap: %6ldkB\n", nr_swap_pages<<(PAGE_SHIFT-10));
for_each_pgdat(pgdat) { for_each_pgdat(pgdat) {
unsigned long present = pgdat->node_present_pages;
int shared = 0, cached = 0, reserved = 0;
printk("Node ID: %d\n", pgdat->node_id); printk("Node ID: %d\n", pgdat->node_id);
for(i = 0; i < pgdat->node_spanned_pages; i++) { for(i = 0; i < pgdat->node_spanned_pages; i++) {
if (!ia64_pfn_valid(pgdat->node_start_pfn+i)) if (!ia64_pfn_valid(pgdat->node_start_pfn+i))
...@@ -511,11 +514,19 @@ void show_mem(void) ...@@ -511,11 +514,19 @@ void show_mem(void)
else if (page_count(pgdat->node_mem_map+i)) else if (page_count(pgdat->node_mem_map+i))
shared += page_count(pgdat->node_mem_map+i)-1; shared += page_count(pgdat->node_mem_map+i)-1;
} }
printk("\t%ld pages of RAM\n", pgdat->node_present_pages); total_present += present;
total_reserved += reserved;
total_cached += cached;
total_shared += shared;
printk("\t%ld pages of RAM\n", present);
printk("\t%d reserved pages\n", reserved); printk("\t%d reserved pages\n", reserved);
printk("\t%d pages shared\n", shared); printk("\t%d pages shared\n", shared);
printk("\t%d pages swap cached\n", cached); printk("\t%d pages swap cached\n", cached);
} }
printk("%ld pages of RAM\n", total_present);
printk("%d reserved pages\n", total_reserved);
printk("%d pages shared\n", total_shared);
printk("%d pages swap cached\n", total_cached);
printk("Total of %ld pages in page table cache\n", pgtable_cache_size); printk("Total of %ld pages in page table cache\n", pgtable_cache_size);
printk("%d free buffer pages\n", nr_free_buffer_pages()); printk("%d free buffer pages\n", nr_free_buffer_pages());
} }
......
...@@ -330,7 +330,7 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus) ...@@ -330,7 +330,7 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus)
struct pci_window *window; struct pci_window *window;
int i, j; int i, j;
int limit = (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) ? \ int limit = (dev->hdr_type == PCI_HEADER_TYPE_NORMAL) ? \
PCI_ROM_RESOURCE : PCI_NUM_RESOURCES; PCI_BRIDGE_RESOURCES : PCI_NUM_RESOURCES;
for (i = 0; i < limit; i++) { for (i = 0; i < limit; i++) {
if (!dev->resource[i].start) if (!dev->resource[i].start)
......
...@@ -702,6 +702,10 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev, ide_pci_device_t * d) ...@@ -702,6 +702,10 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev, ide_pci_device_t * d)
hwif->name, d->name); hwif->name, d->name);
probe_hwif_init(hwif); probe_hwif_init(hwif);
/* Create /proc/ide entries */
create_proc_ide_interfaces();
return 0; return 0;
} }
......
...@@ -895,9 +895,8 @@ void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode) ...@@ -895,9 +895,8 @@ void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode)
spin_lock(&buffer_mapping->private_lock); spin_lock(&buffer_mapping->private_lock);
list_move_tail(&bh->b_assoc_buffers, list_move_tail(&bh->b_assoc_buffers,
&mapping->private_list); &mapping->private_list);
spin_lock(&buffer_mapping->private_lock); spin_unlock(&buffer_mapping->private_lock);
} }
} }
EXPORT_SYMBOL(mark_buffer_dirty_inode); EXPORT_SYMBOL(mark_buffer_dirty_inode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment