* [PATCH] x86: APIC: Make apic_verbosity unsigned
@ 2008-07-14 17:44 Maciej W. Rozycki
2008-07-18 12:21 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Maciej W. Rozycki @ 2008-07-14 17:44 UTC (permalink / raw)
To: Ingo Molnar; +Cc: x86, linux-kernel
As a microoptimisation, make apic_verbosity unsigned. This will make
apic_printk(APIC_QUIET, ...) expand into just printk(...) with the
surrounding condition and a reference to apic_verbosity removed.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
---
patch-next-2.6.26-rc9-20080711-apic-verbosity-unsigned-2
diff -up --recursive --new-file linux-next-2.6.26-rc9-20080711.macro/arch/x86/kernel/apic_32.c linux-next-2.6.26-rc9-20080711/arch/x86/kernel/apic_32.c
--- linux-next-2.6.26-rc9-20080711.macro/arch/x86/kernel/apic_32.c 2008-07-11 15:56:32.000000000 +0000
+++ linux-next-2.6.26-rc9-20080711/arch/x86/kernel/apic_32.c 2008-07-14 17:02:46.000000000 +0000
@@ -75,7 +75,7 @@ char system_vectors[NR_VECTORS] = { [0 .
/*
* Debug level, exported for io_apic.c
*/
-int apic_verbosity;
+unsigned int apic_verbosity;
int pic_mode;
diff -up --recursive --new-file linux-next-2.6.26-rc9-20080711.macro/arch/x86/kernel/apic_64.c linux-next-2.6.26-rc9-20080711/arch/x86/kernel/apic_64.c
--- linux-next-2.6.26-rc9-20080711.macro/arch/x86/kernel/apic_64.c 2008-07-09 18:01:12.000000000 +0000
+++ linux-next-2.6.26-rc9-20080711/arch/x86/kernel/apic_64.c 2008-07-14 17:02:56.000000000 +0000
@@ -54,7 +54,7 @@ EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok
/*
* Debug level, exported for io_apic.c
*/
-int apic_verbosity;
+unsigned int apic_verbosity;
/* Have we found an MP table */
int smp_found_config;
diff -up --recursive --new-file linux-next-2.6.26-rc9-20080711.macro/include/asm-x86/apic.h linux-next-2.6.26-rc9-20080711/include/asm-x86/apic.h
--- linux-next-2.6.26-rc9-20080711.macro/include/asm-x86/apic.h 2008-07-11 15:51:56.000000000 +0000
+++ linux-next-2.6.26-rc9-20080711/include/asm-x86/apic.h 2008-07-14 17:03:21.000000000 +0000
@@ -35,7 +35,7 @@ extern void generic_apic_probe(void);
#ifdef CONFIG_X86_LOCAL_APIC
-extern int apic_verbosity;
+extern unsigned int apic_verbosity;
extern int local_apic_timer_c2_ok;
extern int ioapic_force;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] x86: APIC: Make apic_verbosity unsigned
2008-07-14 17:44 [PATCH] x86: APIC: Make apic_verbosity unsigned Maciej W. Rozycki
@ 2008-07-18 12:21 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-07-18 12:21 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: x86, linux-kernel
* Maciej W. Rozycki <macro@linux-mips.org> wrote:
> As a microoptimisation, make apic_verbosity unsigned. This will make
> apic_printk(APIC_QUIET, ...) expand into just printk(...) with the
> surrounding condition and a reference to apic_verbosity removed.
applied to tip/x86/apic, thanks Maciej.
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-18 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-14 17:44 [PATCH] x86: APIC: Make apic_verbosity unsigned Maciej W. Rozycki
2008-07-18 12:21 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®