Commit 15676295 authored by Jiri Kosina's avatar Jiri Kosina

Revert "Remove dead CONFIG_SIBYTE_BCM1480_PROF"

This reverts commit 22c1d8b4. It has
been nacked by MIPS maintainer Ralf Baechle.
parent 2174efb6
...@@ -362,8 +362,19 @@ asmlinkage void plat_irq_dispatch(void) ...@@ -362,8 +362,19 @@ asmlinkage void plat_irq_dispatch(void)
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
unsigned int pending; unsigned int pending;
#ifdef CONFIG_SIBYTE_BCM1480_PROF
/* Set compare to count to silence count/compare timer interrupts */
write_c0_compare(read_c0_count());
#endif
pending = read_c0_cause() & read_c0_status(); pending = read_c0_cause() & read_c0_status();
#ifdef CONFIG_SIBYTE_BCM1480_PROF
if (pending & CAUSEF_IP7) /* Cpu performance counter interrupt */
sbprof_cpu_intr();
else
#endif
if (pending & CAUSEF_IP4) if (pending & CAUSEF_IP4)
do_IRQ(K_BCM1480_INT_TIMER_0 + cpu); do_IRQ(K_BCM1480_INT_TIMER_0 + cpu);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment