]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/oprofile/op_model_7450.c
Merge branch 'upstream' into pata-drivers
[linux-2.6-omap-h63xx.git] / arch / powerpc / oprofile / op_model_7450.c
index 32abfdbb0eb147f7e0eb7605632bbe98faadf1a5..e0491c3c71f18d90f616f5fea5311c17eeb50914 100644 (file)
@@ -176,13 +176,13 @@ static void fsl7450_handle_interrupt(struct pt_regs *regs,
        mtmsr(mfmsr() | MSR_PMM);
 
        pc = mfspr(SPRN_SIAR);
-       is_kernel = (pc >= KERNELBASE);
+       is_kernel = is_kernel_addr(pc);
 
        for (i = 0; i < NUM_CTRS; ++i) {
                val = ctr_read(i);
                if (val < 0) {
                        if (oprofile_running && ctr[i].enabled) {
-                               oprofile_add_pc(pc, is_kernel, i);
+                               oprofile_add_ext_sample(pc, regs, i, is_kernel);
                                ctr_write(i, reset_value[i]);
                        } else {
                                ctr_write(i, 0);