From: Linus Torvalds Date: Thu, 18 Oct 2007 03:18:32 +0000 (-0400) Subject: Fix /proc/acpi/alarm BCD alarm encodings X-Git-Tag: v2.6.24-rc2~149 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c67c36e4b86872ac875716d502748b84b2541de5;p=pandora-kernel.git Fix /proc/acpi/alarm BCD alarm encodings This fixes some totally illogical and wrong code that converts things to and from BCD mode essentially randomly, does math on values in BCD mode etc etc. Introduce a few helper functions to make it a bit more obvious what is going on, and make sure that we always do all the arithmetic (and anythign else, for that matter) in binary, not BCD. Tested by Mark Lord, who found the problem originally, and also pushed the patch back and reminded me about it. Signed-off-by: Mark Lord Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed