Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f78e754 authored by David S. Miller's avatar David S. Miller
Browse files

[SPARC64]: Remove DEBUG_BOOTMEM.



We'll replace it in the future with better logging facilities that can
be enabled at run time.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b83ebf56
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -23,10 +23,6 @@ config STACK_DEBUG
	depends on DEBUG_KERNEL
	depends on DEBUG_KERNEL
	bool "Stack Overflow Detection Support"
	bool "Stack Overflow Detection Support"


config DEBUG_BOOTMEM
	depends on DEBUG_KERNEL
	bool "Debug BOOTMEM initialization"

config DEBUG_PAGEALLOC
config DEBUG_PAGEALLOC
	bool "Debug page memory allocations"
	bool "Debug page memory allocations"
	depends on DEBUG_KERNEL && !HIBERNATION
	depends on DEBUG_KERNEL && !HIBERNATION
+0 −1
Original line number Original line Diff line number Diff line
@@ -1396,7 +1396,6 @@ CONFIG_FORCED_INLINING=y
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_DCFLUSH is not set
# CONFIG_DEBUG_DCFLUSH is not set
# CONFIG_STACK_DEBUG is not set
# CONFIG_STACK_DEBUG is not set
# CONFIG_DEBUG_BOOTMEM is not set
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_PAGEALLOC is not set


#
#
+1 −42
Original line number Original line Diff line number Diff line
@@ -739,11 +739,6 @@ static unsigned long __init choose_bootmap_pfn(unsigned long start_pfn,
	avoid_end = PAGE_ALIGN(initrd_end);
	avoid_end = PAGE_ALIGN(initrd_end);
#endif
#endif


#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("choose_bootmap_pfn: kern[%lx:%lx] avoid[%lx:%lx]\n",
		    kern_base, PAGE_ALIGN(kern_base + kern_size),
		    avoid_start, avoid_end);
#endif
	for (i = 0; i < pavail_ents; i++) {
	for (i = 0; i < pavail_ents; i++) {
		unsigned long start, end;
		unsigned long start, end;


@@ -777,10 +772,6 @@ static unsigned long __init choose_bootmap_pfn(unsigned long start_pfn,
			}
			}


			/* OK, it doesn't overlap anything, use it.  */
			/* OK, it doesn't overlap anything, use it.  */
#ifdef CONFIG_DEBUG_BOOTMEM
			prom_printf("choose_bootmap_pfn: Using %lx [%lx]\n",
				    start >> PAGE_SHIFT, start);
#endif
			return start >> PAGE_SHIFT;
			return start >> PAGE_SHIFT;
		}
		}
	}
	}
@@ -920,10 +911,6 @@ static unsigned long __init bootmem_init(unsigned long *pages_avail,
	unsigned long bootmap_pfn, bytes_avail, size;
	unsigned long bootmap_pfn, bytes_avail, size;
	int i;
	int i;


#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("bootmem_init: Scan pavail, ");
#endif

	bytes_avail = 0UL;
	bytes_avail = 0UL;
	for (i = 0; i < pavail_ents; i++) {
	for (i = 0; i < pavail_ents; i++) {
		end_of_phys_memory = pavail[i].phys_addr +
		end_of_phys_memory = pavail[i].phys_addr +
@@ -970,33 +957,20 @@ static unsigned long __init bootmem_init(unsigned long *pages_avail,


	bootmap_pfn = choose_bootmap_pfn(min_low_pfn, end_pfn);
	bootmap_pfn = choose_bootmap_pfn(min_low_pfn, end_pfn);


#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("init_bootmem(min[%lx], bootmap[%lx], max[%lx])\n",
		    min_low_pfn, bootmap_pfn, max_low_pfn);
#endif
	bootmap_size = init_bootmem_node(NODE_DATA(0), bootmap_pfn,
	bootmap_size = init_bootmem_node(NODE_DATA(0), bootmap_pfn,
					 min_low_pfn, end_pfn);
					 min_low_pfn, end_pfn);


	/* Now register the available physical memory with the
	/* Now register the available physical memory with the
	 * allocator.
	 * allocator.
	 */
	 */
	for (i = 0; i < pavail_ents; i++) {
	for (i = 0; i < pavail_ents; i++)
#ifdef CONFIG_DEBUG_BOOTMEM
		prom_printf("free_bootmem(pavail:%d): base[%lx] size[%lx]\n",
			    i, pavail[i].phys_addr, pavail[i].reg_size);
#endif
		free_bootmem(pavail[i].phys_addr, pavail[i].reg_size);
		free_bootmem(pavail[i].phys_addr, pavail[i].reg_size);
	}


#ifdef CONFIG_BLK_DEV_INITRD
#ifdef CONFIG_BLK_DEV_INITRD
	if (initrd_start) {
	if (initrd_start) {
		size = initrd_end - initrd_start;
		size = initrd_end - initrd_start;


		/* Reserve the initrd image area. */
		/* Reserve the initrd image area. */
#ifdef CONFIG_DEBUG_BOOTMEM
		prom_printf("reserve_bootmem(initrd): base[%llx] size[%lx]\n",
			initrd_start, initrd_end);
#endif
		reserve_bootmem(initrd_start, size, BOOTMEM_DEFAULT);
		reserve_bootmem(initrd_start, size, BOOTMEM_DEFAULT);


		initrd_start += PAGE_OFFSET;
		initrd_start += PAGE_OFFSET;
@@ -1004,9 +978,6 @@ static unsigned long __init bootmem_init(unsigned long *pages_avail,
	}
	}
#endif
#endif
	/* Reserve the kernel text/data/bss. */
	/* Reserve the kernel text/data/bss. */
#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("reserve_bootmem(kernel): base[%lx] size[%lx]\n", kern_base, kern_size);
#endif
	reserve_bootmem(kern_base, kern_size, BOOTMEM_DEFAULT);
	reserve_bootmem(kern_base, kern_size, BOOTMEM_DEFAULT);
	*pages_avail -= PAGE_ALIGN(kern_size) >> PAGE_SHIFT;
	*pages_avail -= PAGE_ALIGN(kern_size) >> PAGE_SHIFT;


@@ -1020,10 +991,6 @@ static unsigned long __init bootmem_init(unsigned long *pages_avail,
	 * in free_all_bootmem.
	 * in free_all_bootmem.
	 */
	 */
	size = bootmap_size;
	size = bootmap_size;
#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("reserve_bootmem(bootmap): base[%lx] size[%lx]\n",
		    (bootmap_pfn << PAGE_SHIFT), size);
#endif
	reserve_bootmem((bootmap_pfn << PAGE_SHIFT), size, BOOTMEM_DEFAULT);
	reserve_bootmem((bootmap_pfn << PAGE_SHIFT), size, BOOTMEM_DEFAULT);


	for (i = 0; i < pavail_ents; i++) {
	for (i = 0; i < pavail_ents; i++) {
@@ -1031,10 +998,6 @@ static unsigned long __init bootmem_init(unsigned long *pages_avail,


		start_pfn = pavail[i].phys_addr >> PAGE_SHIFT;
		start_pfn = pavail[i].phys_addr >> PAGE_SHIFT;
		end_pfn = (start_pfn + (pavail[i].reg_size >> PAGE_SHIFT));
		end_pfn = (start_pfn + (pavail[i].reg_size >> PAGE_SHIFT));
#ifdef CONFIG_DEBUG_BOOTMEM
		prom_printf("memory_present(0, %lx, %lx)\n",
			    start_pfn, end_pfn);
#endif
		memory_present(0, start_pfn, end_pfn);
		memory_present(0, start_pfn, end_pfn);
	}
	}


@@ -1549,10 +1512,6 @@ void __init mem_init(void)


	high_memory = __va(last_valid_pfn << PAGE_SHIFT);
	high_memory = __va(last_valid_pfn << PAGE_SHIFT);


#ifdef CONFIG_DEBUG_BOOTMEM
	prom_printf("mem_init: Calling free_all_bootmem().\n");
#endif

	/* We subtract one to account for the mem_map_zero page
	/* We subtract one to account for the mem_map_zero page
	 * allocated below.
	 * allocated below.
	 */
	 */