[ARM] cputype: separate definitions, use them
[deliverable/linux.git] / arch / arm / oprofile / op_model_xscale.c
index 6576143f25598253bba9e5d8701bdb44d8bd4234..724ab9ce252674ff02d0e319cc25cd2a7b22da01 100644 (file)
@@ -20,8 +20,9 @@
 #include <linux/sched.h>
 #include <linux/oprofile.h>
 #include <linux/interrupt.h>
-#include <asm/irq.h>
-#include <asm/system.h>
+#include <linux/irq.h>
+
+#include <asm/cputype.h>
 
 #include "op_counter.h"
 #include "op_arm_model.h"
@@ -33,9 +34,6 @@
 #define PMU_CNT64      0x008   /* Make CCNT count every 64th cycle */
 
 /* TODO do runtime detection */
-#ifdef CONFIG_ARCH_IOP310
-#define XSCALE_PMU_IRQ  IRQ_XS80200_PMU
-#endif
 #ifdef CONFIG_ARCH_IOP32X
 #define XSCALE_PMU_IRQ  IRQ_IOP32X_CORE_PMU
 #endif
@@ -344,7 +342,7 @@ static void inline __xsc2_check_ctrs(void)
        __asm__ __volatile__ ("mcr p14, 0, %0, c5, c1, 0" : : "r" (flag));
 }
 
-static irqreturn_t xscale_pmu_interrupt(int irq, void *arg, struct pt_regs *regs)
+static irqreturn_t xscale_pmu_interrupt(int irq, void *arg)
 {
        int i;
        u32 pmnc;
@@ -359,7 +357,7 @@ static irqreturn_t xscale_pmu_interrupt(int irq, void *arg, struct pt_regs *regs
                        continue;
 
                write_counter(i, -(u32)results[i].reset_counter);
-               oprofile_add_sample(regs, i);
+               oprofile_add_sample(get_irq_regs(), i);
                results[i].ovf--;
        }
 
This page took 0.024304 seconds and 5 git commands to generate.