예제 #1
0
파일: smp.c 프로젝트: 1314cc/linux
static void eznps_init_per_cpu(int cpu)
{
	smp_ipi_irq_setup(cpu, NPS_IPI_IRQ);

	eznps_init_core(cpu);
	mtm_enable_core(cpu);
}
예제 #2
0
파일: smp.c 프로젝트: Mellanox/linux
/*
 * Any SMP specific init any CPU does when it comes up.
 * Here we setup the CPU to enable Inter-Processor-Interrupts
 * Called for each CPU
 * -Master      : init_IRQ()
 * -Other(s)    : start_kernel_secondary()
 */
void eznps_smp_init_cpu(unsigned int cpu)
{
	unsigned int rc;

	rc = smp_ipi_irq_setup(cpu, IPI_IRQ);
	if (rc)
		panic("IPI IRQ %d reg failed on BOOT cpu\n", IPI_IRQ);

	eznps_init_core(cpu);
	mtm_enable_core(cpu);
}