From: Mark Lord Date: Tue, 9 Dec 2008 15:46:30 +0000 (-0500) Subject: /proc/acpi/alarm: handle day-of-month wraparound on readback X-Git-Tag: v2.6.29-rc1~34^2~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48452e5f99ab35d643df0463b6ad11aea8ea7bdc;p=pandora-kernel.git /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: Mark Lord Signed-off-by: Len Brown --- Reading git-diff-tree failed