aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2010-01-13 19:19:10 -0500
committerH. Peter Anvin <hpa@zytor.com>2010-01-18 13:59:50 -0500
commit722b3654852e48b93367a63f8ada9ee1cd43f2d3 (patch)
tree8900f857ccea4d5935dd3ac75940aa191dab3bda /arch
parentea94396629a3e0cb9a3a9c75335b1de255b30426 (diff)
x86, vmi: Fix vmi_get_timer_vector() to use IRQ0_VECTOR
FIRST_DEVICE_VECTOR is going away and it looks like a bad hack to steal FIRST_DEVICE_VECTOR / FIRST_EXTERNAL_VECTOR, when it looks like it needs IRQ0_VECTOR. Fix vmi_get_timer_vector() to use IRQ0_VECTOR. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> LKML-Reference: <20100114002118.436172066@sbs-t61.sc.intel.com> Cc: Alok N Kataria <akataria@vmware.com> Cc: Zach Amsden <zach@vmware.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/vmiclock_32.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/kernel/vmiclock_32.c b/arch/x86/kernel/vmiclock_32.c
index 74c92bb194df..1268d993e9ca 100644
--- a/arch/x86/kernel/vmiclock_32.c
+++ b/arch/x86/kernel/vmiclock_32.c
@@ -79,11 +79,7 @@ unsigned long vmi_tsc_khz(void)
79 79
80static inline unsigned int vmi_get_timer_vector(void) 80static inline unsigned int vmi_get_timer_vector(void)
81{ 81{
82#ifdef CONFIG_X86_IO_APIC 82 return IRQ0_VECTOR;
83 return FIRST_DEVICE_VECTOR;
84#else
85 return FIRST_EXTERNAL_VECTOR;
86#endif
87} 83}
88 84
89/** vmi clockchip */ 85/** vmi clockchip */
@@ -239,8 +235,6 @@ void __init vmi_time_init(void)
239 235
240 vmi_time_init_clockevent(); 236 vmi_time_init_clockevent();
241 setup_irq(0, &vmi_clock_action); 237 setup_irq(0, &vmi_clock_action);
242 for_each_possible_cpu(cpu)
243 per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
244} 238}
245 239
246#ifdef CONFIG_X86_LOCAL_APIC 240#ifdef CONFIG_X86_LOCAL_APIC