diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2007-10-18 05:18:32 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-26 00:08:03 +0200 |
commit | c67c36e4b86872ac875716d502748b84b2541de5 (patch) | |
tree | 3b1f3d846cff947d0a12d4b3c7213192792ea675 /lib | |
parent | Linux 2.6.24-rc1 (diff) | |
download | linux-c67c36e4b86872ac875716d502748b84b2541de5.tar.xz linux-c67c36e4b86872ac875716d502748b84b2541de5.zip |
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 <mlord@pobox.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions