Displaying 3 results from an estimated 3 matches for "using_apic_timer".
2006 Feb 16
0
[PATCH] fix mp_current_pci_id duplicate declaration
...@ -23,7 +23,6 @@ extern struct mpc_config_intsrc mp_irqs
extern struct mpc_config_intsrc mp_irqs [MAX_IRQ_SOURCES];
extern int mpc_default_type;
extern int mp_bus_id_to_pci_bus [MAX_MP_BUSSES];
-extern int mp_current_pci_id;
extern unsigned long mp_lapic_addr;
extern int pic_mode;
extern int using_apic_timer;
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...ot;Warning: clock= override failed. Defaulting to vmi.\n");
+
+ return 0;
+}
+
+#ifdef CONFIG_X86_LOCAL_APIC
+
+void __init setup_boot_vmi_alarm(void)
+{
+ if (vmi_timer_used()) {
+ /* Not really the apic timer, but from the apic's
+ * perspective, it looks like the apic timer... */
+ using_apic_timer = 1;
+
+ local_irq_disable();
+
+ apic_write_around(APIC_LVTT, LOCAL_TIMER_VECTOR);
+ /* Cancel the IRQ0 wired alarm, and setup the LVTT alarm. */
+ vmi_cancel_alarm(VMI_CYCLES_AVAILABLE);
+ vmi_set_alarm(VMI_ALARM_WIRED_LVTT | VMI_ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE,
+ per_cpu(pr...
2007 Apr 18
0
[RFC, PATCH 23/24] i386 Vmi timer patch
...ot;Warning: clock= override failed. Defaulting to vmi.\n");
+
+ return 0;
+}
+
+#ifdef CONFIG_X86_LOCAL_APIC
+
+void __init setup_boot_vmi_alarm(void)
+{
+ if (vmi_timer_used()) {
+ /* Not really the apic timer, but from the apic's
+ * perspective, it looks like the apic timer... */
+ using_apic_timer = 1;
+
+ local_irq_disable();
+
+ apic_write_around(APIC_LVTT, LOCAL_TIMER_VECTOR);
+ /* Cancel the IRQ0 wired alarm, and setup the LVTT alarm. */
+ vmi_cancel_alarm(VMI_CYCLES_AVAILABLE);
+ vmi_set_alarm(VMI_ALARM_WIRED_LVTT | VMI_ALARM_IS_PERIODIC | VMI_CYCLES_AVAILABLE,
+ per_cpu(pr...