Skip to content

Commit

Permalink
microblaze: Remove show_tmem function
Browse files Browse the repository at this point in the history
show_tmem function do nothing that's why I removed it.
There is also cleaning of commented ancient code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
michalsimek committed Dec 14, 2009
1 parent 2ee2ff8 commit 233eb92
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/microblaze/mm/pgtable.c
Expand Up @@ -144,7 +144,6 @@ int map_page(unsigned long va, phys_addr_t pa, int flags)
pmd_t *pd;
pte_t *pg;
int err = -ENOMEM;
/* spin_lock(&init_mm.page_table_lock); */
/* Use upper 10 bits of VA to index the first level map */
pd = pmd_offset(pgd_offset_k(va), va);
/* Use middle 10 bits of VA to index the second-level map */
Expand All @@ -158,9 +157,7 @@ int map_page(unsigned long va, phys_addr_t pa, int flags)
if (mem_init_done)
flush_HPTE(0, va, pmd_val(*pd));
/* flush_HPTE(0, va, pg); */

}
/* spin_unlock(&init_mm.page_table_lock); */
return err;
}

Expand All @@ -182,12 +179,6 @@ void __init adjust_total_lowmem(void)
#endif
}

static void show_tmem(unsigned long tmem)
{
volatile unsigned long a;
a = a + tmem;
}

/*
* Map in all of physical memory starting at CONFIG_KERNEL_START.
*/
Expand All @@ -197,7 +188,6 @@ void __init mapin_ram(void)

v = CONFIG_KERNEL_START;
p = memory_start;
show_tmem(memory_size);
for (s = 0; s < memory_size; s += PAGE_SIZE) {
f = _PAGE_PRESENT | _PAGE_ACCESSED |
_PAGE_SHARED | _PAGE_HWEXEC;
Expand Down

0 comments on commit 233eb92

Please sign in to comment.