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

From: Len Brown
Date: Mon Dec 01 2008 - 13:19:11 EST

On Mon, 1 Dec 2008, Mark Lord wrote:

> 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.
> But with this patch applied, it shows the correct month (12).
> Patch applies/works on kernels 2.6.25.* through 2.6.27.*,
> and probably on earlier kernels as well.

We've had some BCD_TO_BIN() changes here in 2.6.28 already,
does 2.6.28-rc still have this bug?

I'd check myself, but I don't have a /proc/acpi/alarm due to this:

/* use /sys/class/rtc/rtcX/wakealarm instead; it's not ACPI-specific */


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at