[PATCH] ppc32: trivial fix for e500 oprofile build

Fix for trivial fix for 2.6.11 oprofile compilation on e500 based ppc.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
galak@freescale.com 2005-03-12 21:42:42 -08:00 committed by Greg KH
parent c568eceeb6
commit 70aa566e28
1 changed files with 1 additions and 2 deletions

View File

@ -150,7 +150,6 @@ static void fsl_booke_handle_interrupt(struct pt_regs *regs,
int is_kernel;
int val;
int i;
unsigned int cpu = smp_processor_id();
/* set the PMM bit (see comment below) */
mtmsr(mfmsr() | MSR_PMM);
@ -162,7 +161,7 @@ static void fsl_booke_handle_interrupt(struct pt_regs *regs,
val = ctr_read(i);
if (val < 0) {
if (oprofile_running && ctr[i].enabled) {
oprofile_add_sample(pc, is_kernel, i, cpu);
oprofile_add_pc(pc, is_kernel, i);
ctr_write(i, reset_value[i]);
} else {
ctr_write(i, 0);