/* Initialize vector_irq on a new cpu. This function must be called with vector_lock held.  */
void __setup_vector_irq(int cpu)
/* Initialize vector_irq on a new cpu. This function must be called with vector_lock held.  */
void __setup_vector_irq(int cpu)
{
	int irq, vector;
	for (vector = 0; vector < IA64_NUM_VECTORS; ++vector)
		per_cpu(vector_irq, cpu)[vector] = -1;
	for (irq = 0; irq < NR_IRQS; ++irq) {
		if (!cpu_isset(cpu, irq_cfg[irq].domain))
			continue;
		vector = irq_to_vector(irq);
		per_cpu(vector_irq, cpu)[vector] = irq;
	}
}