diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:44 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-08-24 12:25:54 +0200 | 
| commit | 5f9ece02401116b29eb04396b99ea092acb75dd8 (patch) | |
| tree | e10386e2dc63c275646b4eb0bed857da7bf86c6a /arch/parisc/mm/init.c | |
| parent | 9f51e24ee8b5a1595b6a5ac0c2be278a16488e75 (diff) | |
| parent | 422bef879e84104fee6dc68ded0e371dbeb5f88e (diff) | |
| download | olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.tar.xz olio-linux-3.10-5f9ece02401116b29eb04396b99ea092acb75dd8.zip  | |
Merge commit 'v2.6.31-rc7' into x86/cleanups
Merge reason: we were on -rc1 before - go up to -rc7
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/parisc/mm/init.c')
| -rw-r--r-- | arch/parisc/mm/init.c | 29 | 
1 files changed, 9 insertions, 20 deletions
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index 4356ceb1e36..b0831d9e35c 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -370,34 +370,22 @@ static void __init setup_bootmem(void)  void free_initmem(void)  { -	unsigned long addr, init_begin, init_end; - -	printk(KERN_INFO "Freeing unused kernel memory: "); +	unsigned long addr; +	unsigned long init_begin = (unsigned long)__init_begin; +	unsigned long init_end = (unsigned long)__init_end;  #ifdef CONFIG_DEBUG_KERNEL  	/* Attempt to catch anyone trying to execute code here  	 * by filling the page with BRK insns. -	 *  -	 * If we disable interrupts for all CPUs, then IPI stops working. -	 * Kinda breaks the global cache flushing.  	 */ -	local_irq_disable(); - -	memset(__init_begin, 0x00, -		(unsigned long)__init_end - (unsigned long)__init_begin); - -	flush_data_cache(); -	asm volatile("sync" : : ); -	flush_icache_range((unsigned long)__init_begin, (unsigned long)__init_end); -	asm volatile("sync" : : ); - -	local_irq_enable(); +	memset((void *)init_begin, 0x00, init_end - init_begin); +	flush_icache_range(init_begin, init_end);  #endif  	/* align __init_begin and __init_end to page size,  	   ignoring linker script where we might have tried to save RAM */ -	init_begin = PAGE_ALIGN((unsigned long)(__init_begin)); -	init_end   = PAGE_ALIGN((unsigned long)(__init_end)); +	init_begin = PAGE_ALIGN(init_begin); +	init_end = PAGE_ALIGN(init_end);  	for (addr = init_begin; addr < init_end; addr += PAGE_SIZE) {  		ClearPageReserved(virt_to_page(addr));  		init_page_count(virt_to_page(addr)); @@ -409,7 +397,8 @@ void free_initmem(void)  	/* set up a new led state on systems shipped LED State panel */  	pdc_chassis_send_status(PDC_CHASSIS_DIRECT_BCOMPLETE); -	printk("%luk freed\n", (init_end - init_begin) >> 10); +	printk(KERN_INFO "Freeing unused kernel memory: %luk freed\n", +		(init_end - init_begin) >> 10);  }  |