diff options
author | Mark Broadbent <markb@wetlettuce.com> | 2004-08-22 22:48:50 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-22 22:48:50 -0700 |
commit | 7c0fe360f6e4dde05d7153f13887e8bca7ca34aa (patch) | |
tree | 73365743e0a4862be7c5f95907eebacfd4c67f7a /include | |
parent | 432818b9f7a0d521a059acdfa7c554692cfc4daa (diff) | |
download | history-7c0fe360f6e4dde05d7153f13887e8bca7ca34aa.tar.gz |
[PATCH] IO-APIC debug message reduction
The APIC and IO-APIC code is very verbose on startup especially on SMP
machines. This patch allows the verbosity of the APIC code to be controlled
through the boot-time option apic= using three levels: quiet, verbose and
debug. The default level is quiet.
Signed-off-by: Mark Broadbent <markb@wetlettuce.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-i386/apic.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/include/asm-i386/apic.h b/include/asm-i386/apic.h index 95cc9c1baac732..8135c7c290f23a 100644 --- a/include/asm-i386/apic.h +++ b/include/asm-i386/apic.h @@ -7,13 +7,28 @@ #include <asm/apicdef.h> #include <asm/system.h> -#define APIC_DEBUG 0 - -#if APIC_DEBUG -#define Dprintk(x...) printk(x) -#else #define Dprintk(x...) -#endif + +/* + * Debugging macros + */ +#define APIC_QUIET 0 +#define APIC_VERBOSE 1 +#define APIC_DEBUG 2 + +extern int apic_verbosity; + +/* + * Define the default level of output to be very little + * This can be turned up by using apic=verbose for more + * information and apic=debug for _lots_ of information. + * apic_verbosity is defined in apic.c + */ +#define apic_printk(v, s, a...) do { \ + if ((v) <= apic_verbosity) \ + printk(s, ##a); \ + } while (0) + #ifdef CONFIG_X86_LOCAL_APIC |