lkml.org 
[lkml]   [2005]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[07/11] ppc32: trivial fix for e500 oprofile build

    -stable review patch. If anyone has any objections, please let us know.

    ------------------



    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>

    diff -Nru a/arch/ppc/oprofile/op_model_fsl_booke.c b/arch/ppc/oprofile/op_model_fsl_booke.c
    --- a/arch/ppc/oprofile/op_model_fsl_booke.c 2005-03-04 13:02:52 -06:00
    +++ b/arch/ppc/oprofile/op_model_fsl_booke.c 2005-03-04 13:02:52 -06:00
    @@ -150,7 +150,6 @@
    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 @@
    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);
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:11    [W:0.019 / U:30.912 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site