Browse Source

[PATCH] x86: make using_apic_timer __read_mostly

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Andreas Mohr 19 years ago
parent
commit
acae9d3243
2 changed files with 2 additions and 2 deletions
  1. 1 1
      arch/i386/kernel/apic.c
  2. 1 1
      arch/x86_64/kernel/apic.c

+ 1 - 1
arch/i386/kernel/apic.c

@@ -113,7 +113,7 @@ void __init apic_intr_init(void)
 }
 
 /* Using APIC to generate smp_local_timer_interrupt? */
-int using_apic_timer = 0;
+int using_apic_timer __read_mostly = 0;
 
 static int enabled_via_apicbase;
 

+ 1 - 1
arch/x86_64/kernel/apic.c

@@ -51,7 +51,7 @@ int disable_apic_timer __initdata;
 static cpumask_t timer_interrupt_broadcast_ipi_mask;
 
 /* Using APIC to generate smp_local_timer_interrupt? */
-int using_apic_timer = 0;
+int using_apic_timer __read_mostly = 0;
 
 static void apic_pm_activate(void);