/* Set up the timer pin, possibly with the 8259A-master behind.  */
static void __init setup_timer_IRQ0_pin(unsigned int apic_id, unsigned int pin, int vector)
/* Set up the timer pin, possibly with the 8259A-master behind.  */
static void __init setup_timer_IRQ0_pin(unsigned int apic_id, unsigned int pin, int vector)
{
	struct IO_APIC_route_entry entry;
	if (intr_remapping_enabled)
		return;
	memset(&entry, 0, sizeof(entry));
	entry.dest_mode = apic->irq_dest_mode;
	entry.mask = 0;
	entry.dest = apic->cpu_mask_to_apicid(apic->target_cpus());
	entry.delivery_mode = apic->irq_delivery_mode;
	entry.polarity = 0;
	entry.trigger = 0;
	entry.vector = vector;
	set_irq_chip_and_handler_name(0, &ioapic_chip, handle_edge_irq, "edge");
	ioapic_write_entry(apic_id, pin, entry);
}