From: Andres Salomon Date: Sat, 9 Feb 2008 22:24:08 +0000 (+0100) Subject: x86: GEODE: MFGPT: fix a potential race when disabling a timer X-Git-Tag: v2.6.25-rc1~8^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f54ae69bafa16434ce46bc2f1fe556bce4d23650;p=pandora-kernel.git x86: GEODE: MFGPT: fix a potential race when disabling a timer We *really* don't want to be reading MFGPTx_SETUP and writing back those values. What we want to be doing is clearing CMP1 and CMP2 unconditionally; otherwise, we have races where CMP1 and/or CMP2 fire after we've read MFGPTx_SETUP. They can also fire between when we've written ~CNTEN to the register, and when the new register values get copied to the timer's version of the register. By clearing both fields, we're okay. Signed-off-by: Andres Salomon Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed