lkml.org 
[lkml]   [2004]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] reduce ifdef clutter in arch/ppc64/kernel/sysfs.c

    --- 1.12/arch/ppc64/kernel/sysfs.c 2004-09-21 09:22:33 +02:00
    +++ edited/arch/ppc64/kernel/sysfs.c 2004-09-25 17:19:25 +02:00
    @@ -15,8 +15,7 @@

    /* SMT stuff */

    -#ifndef CONFIG_PPC_ISERIES
    -
    +#ifdef CONFIG_PPC_MULTIPLATFORM
    /* default to snooze disabled */
    DEFINE_PER_CPU(unsigned long, smt_snooze_delay);

    @@ -92,19 +91,6 @@
    }
    __setup("smt-snooze-delay=", setup_smt_snooze_delay);

    -#endif
    -
    -
    -/* PMC stuff */
    -
    -#ifdef CONFIG_PPC_ISERIES
    -void ppc64_enable_pmcs(void)
    -{
    - /* XXX Implement for iseries */
    -}
    -#endif
    -
    -#ifdef CONFIG_PPC_MULTIPLATFORM
    /*
    * Enabling PMCs will slow partition context switch times so we only do
    * it the first time we write to the PMCs.
    @@ -180,6 +166,14 @@
    mtspr(CTRLT, ctrl);
    }
    #endif /* CONFIG_PPC_PSERIES */
    +}
    +
    +#else
    +
    +/* PMC stuff */
    +void ppc64_enable_pmcs(void)
    +{
    + /* XXX Implement for iseries */
    }
    #endif /* CONFIG_PPC_MULTIPLATFORM */

    -
    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:06    [W:0.019 / U:31.932 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site