]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Fix ppc64 smu driver locking
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 29 Sep 2005 22:25:17 +0000 (08:25 +1000)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 29 Sep 2005 22:42:58 +0000 (15:42 -0700)
commit210c083e6971b3f9631b590f3b936e4154c19b0c
tree83da95a5b4b6a9b30c7c3dd0e129b589082b61aa
parenta6abc6d85f1356e8107d99b4ef53322c569456f1
[PATCH] Fix ppc64 smu driver locking

The SMU driver has a small mistake in the locking of the interrupt code,
if polled access and interrupt access race, interrupt may take a lock
and return without releasing it. This fixes it. With that patch, the
driver is rock solid with my experimental thermal control (which bangs
it pretty hard) racing with real time clock and cpufreq handling.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/smu.c