Skip to content

Commit baa1318

Browse files
Maciej W. RozyckiIngo Molnar
authored andcommitted
x86: APIC: Make apic_verbosity unsigned
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> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 17c4469 commit baa1318

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/x86/kernel/apic_32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ char system_vectors[NR_VECTORS] = { [0 ... NR_VECTORS-1] = SYS_VECTOR_FREE};
7575
/*
7676
* Debug level, exported for io_apic.c
7777
*/
78-
int apic_verbosity;
78+
unsigned int apic_verbosity;
7979

8080
int pic_mode;
8181

arch/x86/kernel/apic_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ EXPORT_SYMBOL_GPL(local_apic_timer_c2_ok);
5454
/*
5555
* Debug level, exported for io_apic.c
5656
*/
57-
int apic_verbosity;
57+
unsigned int apic_verbosity;
5858

5959
/* Have we found an MP table */
6060
int smp_found_config;

include/asm-x86/apic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ extern void generic_apic_probe(void);
3737

3838
#ifdef CONFIG_X86_LOCAL_APIC
3939

40-
extern int apic_verbosity;
40+
extern unsigned int apic_verbosity;
4141
extern int local_apic_timer_c2_ok;
4242

4343
extern int ioapic_force;

0 commit comments

Comments
 (0)