mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alessandro Zummo <alessandro.zummo@towertech.it>
To: rtc-linux@googlegroups.com
Cc: david-b@pacbell.net, lkml <linux-kernel@vger.kernel.org>,
	Mark Lord <lkml@rtr.ca>,
	akpm@linux-foundation.org
Subject: Re: [rtc-linux] [patch 2.6.26-rc7] rtc_read_alarm() handles wraparound
Date: Wed, 25 Jun 2008 10:59:06 +0200	[thread overview]
Message-ID: <20080625105906.714e1197@i1501.lan.towertech.it> (raw)
In-Reply-To: <200806222042.13929.david-b@pacbell.net>

On Sun, 22 Jun 2008 20:42:13 -0700
David Brownell <david-b@pacbell.net> wrote:

> While 0e36a9a4a788e4e92407774df76c545910810d35 made sure that active
> alarms were never returned with invalid "wildcard" fields (negative),
> it can still report (wrongly) that the alarm triggers in the past.
> 
> Example, if it's now 10am, an alarm firing at 5am will be triggered
> TOMORROW not today.  (Which may also be next month or next year...)
> 
> This updates that alarm handling in three ways:
> 
>   * Handle alarm rollover in the common cases of RTCs that don't
>     support matching on all date fields.
> 
>   * Skip the invalid-field logic when it's not needed.
> 
>   * Minor bugfix ... tm_isdst should be ignored, it's one of the
>     fields Linux doesn't maintain.
> 
> A warning is emitted for some of the unhandled rollover cases, but
> the possible combinations are a bit too numerous to handle every
> bit of potential hardware and firmware braindamage.
> 
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

 Acked-by: Alessandro Zummo <a.zummo@towertech.it>

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it


  reply	other threads:[~2008-06-25  8:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23  3:42 David Brownell
2008-06-25  8:59 ` Alessandro Zummo [this message]
2008-12-01 16:57 ` PATCH: /proc/acpi/alarm: handle day-of-month wraparound on readback Mark Lord
2008-12-01 17:02   ` Mark Lord
2008-12-02 10:29     ` Tino Keitel
2008-12-02 18:54       ` Mark Lord
2008-12-01 18:18   ` Len Brown
2008-12-01 22:13     ` Mark Lord
2008-12-09 15:46       ` [PATCH] " Mark Lord
2008-12-10  5:35         ` Len Brown
2008-12-01 22:15     ` PATCH: " Mark Lord
2008-12-01 22:32       ` [rtc-linux] " Alessandro Zummo
2008-12-02 18:57         ` Mark Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080625105906.714e1197@i1501.lan.towertech.it \
    --to=alessandro.zummo@towertech.it \
    --cc=akpm@linux-foundation.org \
    --cc=david-b@pacbell.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@rtr.ca \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome