Skip to content
Commit 48452e5f authored by Mark Lord's avatar Mark Lord Committed by Len Brown
Browse files

/proc/acpi/alarm: handle day-of-month wraparound on readback



Fix month wrap issue with readback from /proc/acpi/alarm
This bug has been around *forever*.

  $ echo '2008-12-01 10:36:20' > /proc/acpi/alarm
  $ cat /proc/acpi/alarm
  2008-11-01 10:36:20

Note how the readback above shows the month incorrectly
when the alarm is set in the *next* calendar month.
But with this patch applied, it shows the correct month (12).

Signed-off-by: default avatarMark Lord <mlord@pobox.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 437f2f91
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment