Ejemplo n.º 1
0
void brcm_mips_int7_dispatch(struct pt_regs *regs)
{		
#ifdef CONFIG_OPROFILE
	if( performance_enabled && test_all_counters() ) 
	{
		brcm_mips_performance_dispatch(regs);
	}
#endif
	do_IRQ(smp_processor_id() ? BCM_LINUX_SYSTIMER_1_IRQ :
		BCM_LINUX_SYSTIMER_IRQ, regs);
}
Ejemplo n.º 2
0
/*
 * IRQ7 functions
 */
void brcm_mips_int7_dispatch(struct pt_regs *regs)
{		
	static char firstint = 0;
	if (firstint == 0)
	{
		firstint = 1;
	}
#ifdef CONFIG_OPROFILE
/* TDT-Interrupt dispatch for perf. counters is broken, use timer interrupt for now */
#if 0
	/* Interrupts without IP bit set are due to perf. counter */
	if( (read_c0_cause()&(CAUSEF_IP|CAUSEF_EXCCODE))==0)
	{
		brcm_mips_performance_dispatch(regs);
	}
	else
#else
		brcm_mips_performance_dispatch(regs);
#endif
#endif
	do_IRQ(BCM_LINUX_SYSTIMER_IRQ, regs);
}