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

Commit dcad47fc authored by David Gibson's avatar David Gibson Committed by Paul Mackerras
Browse files

[PATCH] powerpc: Kill ppcdebug



The ancient ppcdebug/PPCDBG mechanism is now only used in two places.
First, in the hash setup code, one of the bits allows the size of the
hash table to be reduced by a factor of 8 - which would be better
accomplished with a command line option for that purpose.  The other
was a bunch of bus walking related messages in the iSeries code, which
would seem to be insufficient reason to keep the mechanism.

This patch removes the last traces of this mechanism.

Built and booted on iSeries and pSeries POWER5 LPAR (ARCH=powerpc).

Signed-off-by: default avatarDavid Gibson <dwg@au1.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 723925b7
Loading
Loading
Loading
Loading
+1 −8
Original line number Original line Diff line number Diff line
@@ -41,7 +41,6 @@
#include <asm/elf.h>
#include <asm/elf.h>
#include <asm/machdep.h>
#include <asm/machdep.h>
#include <asm/paca.h>
#include <asm/paca.h>
#include <asm/ppcdebug.h>
#include <asm/time.h>
#include <asm/time.h>
#include <asm/cputable.h>
#include <asm/cputable.h>
#include <asm/sections.h>
#include <asm/sections.h>
@@ -60,6 +59,7 @@
#include <asm/firmware.h>
#include <asm/firmware.h>
#include <asm/systemcfg.h>
#include <asm/systemcfg.h>
#include <asm/xmon.h>
#include <asm/xmon.h>
#include <asm/udbg.h>


#ifdef DEBUG
#ifdef DEBUG
#define DBG(fmt...) udbg_printf(fmt)
#define DBG(fmt...) udbg_printf(fmt)
@@ -243,12 +243,6 @@ void __init early_setup(unsigned long dt_ptr)


	DBG(" -> early_setup()\n");
	DBG(" -> early_setup()\n");


	/*
	 * Fill the default DBG level (do we want to keep
	 * that old mecanism around forever ?)
	 */
	ppcdbg_initialize();

	/*
	/*
	 * Do early initializations using the flattened device
	 * Do early initializations using the flattened device
	 * tree, like retreiving the physical memory map or
	 * tree, like retreiving the physical memory map or
@@ -516,7 +510,6 @@ void __init setup_system(void)


	printk("-----------------------------------------------------\n");
	printk("-----------------------------------------------------\n");
	printk("ppc64_pft_size                = 0x%lx\n", ppc64_pft_size);
	printk("ppc64_pft_size                = 0x%lx\n", ppc64_pft_size);
	printk("ppc64_debug_switch            = 0x%lx\n", ppc64_debug_switch);
	printk("ppc64_interrupt_controller    = 0x%ld\n", ppc64_interrupt_controller);
	printk("ppc64_interrupt_controller    = 0x%ld\n", ppc64_interrupt_controller);
	printk("systemcfg                     = 0x%p\n", systemcfg);
	printk("systemcfg                     = 0x%p\n", systemcfg);
	printk("systemcfg->platform           = 0x%x\n", systemcfg->platform);
	printk("systemcfg->platform           = 0x%x\n", systemcfg->platform);
+0 −1
Original line number Original line Diff line number Diff line
@@ -44,7 +44,6 @@
#include <asm/cacheflush.h>
#include <asm/cacheflush.h>
#ifdef CONFIG_PPC64
#ifdef CONFIG_PPC64
#include "ppc32.h"
#include "ppc32.h"
#include <asm/ppcdebug.h>
#include <asm/unistd.h>
#include <asm/unistd.h>
#include <asm/vdso.h>
#include <asm/vdso.h>
#else
#else
+0 −1
Original line number Original line Diff line number Diff line
@@ -33,7 +33,6 @@
#include <asm/ucontext.h>
#include <asm/ucontext.h>
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/ppcdebug.h>
#include <asm/unistd.h>
#include <asm/unistd.h>
#include <asm/cacheflush.h>
#include <asm/cacheflush.h>
#include <asm/vdso.h>
#include <asm/vdso.h>
+0 −7
Original line number Original line Diff line number Diff line
@@ -32,7 +32,6 @@
#include <linux/init.h>
#include <linux/init.h>
#include <linux/signal.h>
#include <linux/signal.h>


#include <asm/ppcdebug.h>
#include <asm/processor.h>
#include <asm/processor.h>
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/mmu.h>
#include <asm/mmu.h>
@@ -194,12 +193,6 @@ void __init htab_initialize(void)
	htab_size_bytes = get_hashtable_size();
	htab_size_bytes = get_hashtable_size();
	pteg_count = htab_size_bytes >> 7;
	pteg_count = htab_size_bytes >> 7;


	/* For debug, make the HTAB 1/8 as big as it normally would be. */
	ifppcdebug(PPCDBG_HTABSIZE) {
		pteg_count >>= 3;
		htab_size_bytes = pteg_count << 7;
	}

	htab_hash_mask = pteg_count - 1;
	htab_hash_mask = pteg_count - 1;


	if (systemcfg->platform & PLATFORM_LPAR) {
	if (systemcfg->platform & PLATFORM_LPAR) {
+0 −1
Original line number Original line Diff line number Diff line
@@ -57,7 +57,6 @@
#include <asm/processor.h>
#include <asm/processor.h>
#include <asm/mmzone.h>
#include <asm/mmzone.h>
#include <asm/cputable.h>
#include <asm/cputable.h>
#include <asm/ppcdebug.h>
#include <asm/sections.h>
#include <asm/sections.h>
#include <asm/system.h>
#include <asm/system.h>
#include <asm/iommu.h>
#include <asm/iommu.h>
Loading