aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/apic.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-15 11:59:00 +0000
committerKeir Fraser <keir@xen.org>2010-12-15 11:59:00 +0000
commit18a803be99a6bda4a5642a8191aa028968d40b0c (patch)
treed2baa9839725bb5a69fed8c607ea2ef906badd68 /xen/arch/x86/apic.c
parent1f87cbc575c2465a4ef76da976bf31786aaa0a0e (diff)
downloadxen-18a803be99a6bda4a5642a8191aa028968d40b0c.tar.gz
xen-18a803be99a6bda4a5642a8191aa028968d40b0c.tar.bz2
xen-18a803be99a6bda4a5642a8191aa028968d40b0c.zip
x86: adjust other interrupt related section placement
... and remove some variables the value of which is never used altogether. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/apic.c')
-rw-r--r--xen/arch/x86/apic.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/xen/arch/x86/apic.c b/xen/arch/x86/apic.c
index f48c442e39..b05a9b7eb9 100644
--- a/xen/arch/x86/apic.c
+++ b/xen/arch/x86/apic.c
@@ -160,7 +160,7 @@ void __init apic_intr_init(void)
}
/* Using APIC to generate smp_local_timer_interrupt? */
-int using_apic_timer = 0;
+static bool_t __read_mostly using_apic_timer;
static int enabled_via_apicbase;
@@ -1083,9 +1083,7 @@ __next:
*****************************************************************************/
/* used for system time scaling */
-static unsigned long bus_freq; /* KAF: pointer-size avoids compile warns. */
-static u32 bus_cycle; /* length of one bus cycle in pico-seconds */
-static u32 bus_scale; /* scaling factor convert ns to bus cycles */
+static u32 __read_mostly bus_scale; /* scaling factor convert ns to bus cycles */
/*
* The timer chip is already set up at HZ interrupts per second here,
@@ -1197,6 +1195,8 @@ static int __init calibrate_APIC_clock(void)
long tt1, tt2;
long result;
int i;
+ unsigned long bus_freq; /* KAF: pointer-size avoids compile warns. */
+ u32 bus_cycle; /* length of one bus cycle in pico-seconds */
const int LOOPS = HZ/10;
apic_printk(APIC_VERBOSE, "calibrating APIC timer ...\n");
@@ -1411,7 +1411,6 @@ fastcall void smp_error_interrupt(struct cpu_user_regs *regs)
apic_write(APIC_ESR, 0);
v1 = apic_read(APIC_ESR);
ack_APIC_irq();
- atomic_inc(&irq_err_count);
/* Here is what the APIC error bits mean:
0: Send CS error