Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: BCM1480: Remove checks for CONFIG_SIBYTE_BCM1480_PROF

There are two checks for CONFIG_SIBYTE_BCM1480_PROF in the tree since
v2.6.15. The related Kconfig symbol has never been added to the tree. So
these checks have always evaluated to false. Besides, one of these
checks guards a call of sbprof_cpu_intr(). But that function is not
defined. Remove all this.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/6981/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Paul Bolle and committed by
Ralf Baechle
66de4859 d493a85c

-11
-11
arch/mips/sibyte/bcm1480/irq.c
··· 347 347 unsigned int cpu = smp_processor_id(); 348 348 unsigned int pending; 349 349 350 - #ifdef CONFIG_SIBYTE_BCM1480_PROF 351 - /* Set compare to count to silence count/compare timer interrupts */ 352 - write_c0_compare(read_c0_count()); 353 - #endif 354 - 355 350 pending = read_c0_cause() & read_c0_status(); 356 - 357 - #ifdef CONFIG_SIBYTE_BCM1480_PROF 358 - if (pending & CAUSEF_IP7) /* Cpu performance counter interrupt */ 359 - sbprof_cpu_intr(); 360 - else 361 - #endif 362 351 363 352 if (pending & CAUSEF_IP4) 364 353 do_IRQ(K_BCM1480_INT_TIMER_0 + cpu);