From: Jan Beulich Date: Wed, 11 Jan 2006 21:46:42 +0000 (+0100) Subject: [PATCH] x86_64: Fix get_cmos_time() X-Git-Tag: v2.6.16-rc1~294 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5329e13d0bd82e13814050eb9facb25eedde4bbc;p=pandora-kernel.git [PATCH] x86_64: Fix get_cmos_time() Due to a broken condition, the body of the loop that is intended to wait for the Update-In-Progress bit to get set and then cleared again was never entered; in fact, the entire loop was optimized out by the compiler. Here is a change to fix the condition (and to also move the initialization of locals out of the spin lock protected region). Signed-Off-By: Jan Beulich Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed