Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138697
b: refs/heads/master
c: d1a8e77
h: refs/heads/master
i:
  138695: 37e0637
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Mar 6, 2009
1 parent cf9f769 commit 0ce16ca
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 8827247ffcc9e880cbe4705655065cf011265157
refs/heads/master: d1a8e7792047f7dca7eb5759250e2c12800bf262
19 changes: 8 additions & 11 deletions trunk/arch/x86/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,19 +504,13 @@ static inline pte_t * __init early_ioremap_pte(unsigned long addr)
return &bm_pte[pte_index(addr)];
}

static unsigned long slot_virt[FIX_BTMAPS_SLOTS] __initdata;

void __init early_ioremap_init(void)
{
pmd_t *pmd;
int i;

if (early_ioremap_debug)
printk(KERN_INFO "early_ioremap_init()\n");

for (i = 0; i < FIX_BTMAPS_SLOTS; i++)
slot_virt[i] = fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i);

pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));
memset(bm_pte, 0, sizeof(bm_pte));
pmd_populate_kernel(&init_mm, pmd, bm_pte);
Expand Down Expand Up @@ -583,7 +577,6 @@ static inline void __init early_clear_fixmap(enum fixed_addresses idx)

static void __iomem *prev_map[FIX_BTMAPS_SLOTS] __initdata;
static unsigned long prev_size[FIX_BTMAPS_SLOTS] __initdata;

static int __init check_early_ioremap_leak(void)
{
int count = 0;
Expand All @@ -605,8 +598,7 @@ static int __init check_early_ioremap_leak(void)
}
late_initcall(check_early_ioremap_leak);

static void __init __iomem *
__early_ioremap(unsigned long phys_addr, unsigned long size, pgprot_t prot)
static void __init __iomem *__early_ioremap(unsigned long phys_addr, unsigned long size, pgprot_t prot)
{
unsigned long offset, last_addr;
unsigned int nrpages;
Expand Down Expand Up @@ -672,9 +664,9 @@ __early_ioremap(unsigned long phys_addr, unsigned long size, pgprot_t prot)
--nrpages;
}
if (early_ioremap_debug)
printk(KERN_CONT "%08lx + %08lx\n", offset, slot_virt[slot]);
printk(KERN_CONT "%08lx + %08lx\n", offset, fix_to_virt(idx0));

prev_map[slot] = (void __iomem *)(offset + slot_virt[slot]);
prev_map[slot] = (void __iomem *)(offset + fix_to_virt(idx0));
return prev_map[slot];
}

Expand Down Expand Up @@ -742,3 +734,8 @@ void __init early_iounmap(void __iomem *addr, unsigned long size)
}
prev_map[slot] = NULL;
}

void __this_fixmap_does_not_exist(void)
{
WARN_ON(1);
}
3 changes: 3 additions & 0 deletions trunk/arch/x86/mm/memtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ static int __init parse_memtest(char *arg)
{
if (arg)
memtest_pattern = simple_strtoul(arg, NULL, 0);
else
memtest_pattern = ARRAY_SIZE(patterns);

return 0;
}

Expand Down

0 comments on commit 0ce16ca

Please sign in to comment.