]> git.karo-electronics.de Git - mv-sheeva.git/commit
powerpc/rtasd: Don't start event scan if scan rate is zero
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 19 May 2010 02:12:32 +0000 (02:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 21 May 2010 07:29:39 +0000 (17:29 +1000)
commit7358650e9e9a81c854dc4582b4193eb5ea500bf6
treef21f177a301f7a7f7ec99e3213d7a525b67fab89
parent78f622377f7d31d988db350a43c5689dd5f31876
powerpc/rtasd: Don't start event scan if scan rate is zero

There appear to be Pegasos systems which have the rtas-event-scan
RTAS tokens, but on which the event scan always fails. They also
have an event-scan-rate property containing 0, which means call
event scan 0 times per minute.

So interpret a scan rate of 0 to mean don't scan at all. This fixes
the problem on the Pegasos machines and makes sense as well.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/rtasd.c