[POWERPC] Fix off-by-one error in setting decrementer on Book E
Sergei Shtylyov
sshtylyov at ru.mvista.com
Thu Nov 1 01:12:31 EST 2007
Hello.
Paul Mackerras wrote:
> If I take out the removed lines in the rest of your patch, I get:
>>+ */
>> #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
More information about the Linuxppc-dev
mailing list