[PATCH V2] powerpc: Fix Book-E watchdog timer interval setting

Timur Tabi timur at freescale.com
Wed Sep 24 02:31:55 EST 2008


On Tue, Sep 23, 2008 at 10:04 AM, Matthias Fuchs
<matthias.fuchs at esd-electronics.com> wrote:
>  #ifdef CONFIG_FSL_BOOKE
>  #define WDTP(x)                ((((63-x)&0x3)<<30)|(((63-x)&0x3c)<<15))
> +#define WDTP_MASK      (WDTP(63))

WDTP(63) is "((((63-63)&0x3)<<30)|(((63-63)&0x3c)<<15))", which is
equal to 0.  Shouldn't WDTP_MASK be equal to "(3 << 30) | (15 << 15)"?

-- 
Timur Tabi
Linux kernel developer at Freescale



More information about the Linuxppc-dev mailing list