[MIPS] IP32: Enable PCI bridges
[linux-2.6.git] / arch / mips / oprofile / op_model_rm9000.c
index 9b75e41c78ef891a02021db2cf40d5c004c7e391..d29040a56aeaf39573c312389a7c98e77e7cce1b 100644 (file)
@@ -80,10 +80,10 @@ static void rm9000_cpu_stop(void *args)
        write_c0_perfcontrol(0);
 }
 
-static irqreturn_t rm9000_perfcount_handler(int irq, void * dev_id,
-       struct pt_regs *regs)
+static irqreturn_t rm9000_perfcount_handler(int irq, void * dev_id)
 {
        unsigned int control = read_c0_perfcontrol();
+       struct pt_regs *regs = get_irq_regs();
        uint32_t counter1, counter2;
        uint64_t counters;
 
@@ -126,7 +126,7 @@ static void rm9000_exit(void)
        free_irq(rm9000_perfcount_irq, NULL);
 }
 
-struct op_mips_model op_model_rm9000 = {
+struct op_mips_model op_model_rm9000_ops = {
        .reg_setup      = rm9000_reg_setup,
        .cpu_setup      = rm9000_cpu_setup,
        .init           = rm9000_init,