diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2007-10-17 23:18:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-25 18:08:03 -0400 |
commit | c67c36e4b86872ac875716d502748b84b2541de5 (patch) | |
tree | 3b1f3d846cff947d0a12d4b3c7213192792ea675 /lib | |
parent | c9927c2bf4f45bb85e8b502ab3fb79ad6483c244 (diff) |
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