Re: [POWERPC] Fix off-by-one error in setting decrementer on Book E
From: Sergei Shtylyov <hidden>
Date: 2007-10-31 14:12:26
From: Sergei Shtylyov <hidden>
Date: 2007-10-31 14:12:26
Hello. Paul Mackerras wrote:
If I take out the removed lines in the rest of your patch, I get:
quoted
+ */ #if defined(CONFIG_40x) mtspr(SPRN_PIT, val); +#else +#if !defined(CONFIG_BOOKE) + val = val ? val - 1 : 0; +#endif +#if defined(CONFIG_8xx_CPU6) set_dec_cpu6(val); +#if defined(CONFIG_PPC_ISERIES)
I think you're missing a #else here.
You've cut off #endif's at the end. But yes, you are correct -- I've lost
it while pasting this hunk into mail. :-/
Paul.
WBR, Sergei