]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/edac: mod race fix i82875p
authorJason Uhlenkott <juhlenko@akamai.com>
Thu, 19 Jul 2007 08:50:16 +0000 (01:50 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:55 +0000 (10:04 -0700)
commitf3ca660135f1248063c8eab18ac0132045e089e0
treed82908a5559e0fc899234220fb4a441bdb103055
parentd5a5f5607b0146fa4ec03aea6a0531174f12a8f5
drivers/edac: mod race fix i82875p

If ERRSTS indicates that there's no error then we don't need to bother reading
the other registers.

In addition to making the common case faster, this actually fixes a small race
where we don't see an error but we clear the error bits anyway, potentially
wiping away info on an error that happened in the interim (or where a CE
arrives between the first and second read of ERRSTS, causing us to falsely
claim "UE overwrote CE").

Signed-off-by: Jason Uhlenkott <juhlenko@akamai.com>
Signed-off-by: Douglas Thompson <dougthompson@xmission.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/edac/i82875p_edac.c