[lkml]   [2007]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] at91 pm: Compilation fix for at91sam926x

    > > +#if defined(CONFIG_ARCH_AT91RM9200)
    > > at91_sys_write(AT91_SDRAMC_SRR, 1); /*
    > > self-refresh mode */

    > Why don't use:
    > if (cpu_is_at91rm9200())
    > at91_sys_write(AT91_SDRAMC_SRR, 1);

    What is the benefit?
    Will the optimizer remove the code if the CPU is not the at91rm9200?

    Best Regards
    Ulf Samuelsson
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-08-10 00:53    [W:0.019 / U:10.876 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site