From: Andrew Morton <akpm@linux-foundation.org>
To: David Brownell <david-b@pacbell.net>
Cc: linux-kernel@vger.kernel.org, linux-pm@lists.linux-foundation.org
Subject: Re: [patch 2.6.26-git] pm selftest: rtc paranoia
Date: Fri, 25 Jul 2008 14:49:46 -0700 [thread overview]
Message-ID: <20080725144946.5e1b78c8.akpm@linux-foundation.org> (raw)
In-Reply-To: <200807251326.51987.david-b@pacbell.net>
On Fri, 25 Jul 2008 13:26:51 -0700
David Brownell <david-b@pacbell.net> wrote:
> From: David Brownell <dbrownell@users.sourceforge.net>
>
> Cope with a quirk of some RTCs (notably ACPI ones) which
> aren't guaranteed to implement oneshot behavior when they
> woke the system from sleeep: forcibly disable the alarm,
> just in case.
>
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> ---
> kernel/power/main.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> --- a/kernel/power/main.c 2008-07-22 16:38:32.000000000 -0700
> +++ b/kernel/power/main.c 2008-07-22 16:39:15.000000000 -0700
> @@ -635,6 +635,13 @@ static void __init test_wakealarm(struct
> }
> if (status < 0)
> printk(err_suspend, status);
> +
> + /* Some platforms can't detect that the alarm triggered the
> + * wakeup, or (accordingly) disable it after it afterwards.
> + * It's supposed to give oneshot behavior; cope.
> + */
> + alm.enabled = false;
> + rtc_set_alarm(rtc, &alm);
> }
>
> static int __init has_wakealarm(struct device *dev, void *name_ptr)
I assume this fixes some reported bug? Any references?
Is this needed in 2.6.26.x? 2.6.25.x?
next prev parent reply other threads:[~2008-07-25 21:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 20:26 [patch 2.6.26-git] pm selftest: rtc paranoia David Brownell
2008-07-25 21:49 ` Andrew Morton
2008-07-25 21:49 ` Andrew Morton [this message]
2008-07-25 21:50 ` Andrew Morton
2008-07-25 21:50 ` Andrew Morton
2008-07-25 22:22 ` David Brownell
2008-07-25 22:22 ` David Brownell
-- strict thread matches above, loose matches on Subject: below --
2008-07-25 20:26 David Brownell
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=20080725144946.5e1b78c8.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=david-b@pacbell.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.