From: Thomas Gleixner <tglx@linutronix.de>
To: "Lee, Zhuo-hao" <zhuo-hao.lee@intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"zhuohao.lee82@gmail.com" <zhuohao.lee82@gmail.com>,
John Stultz <john.stultz@linaro.org>
Subject: Re: [PATCH] alarmtimer: fix unexpected rtc interrupt when system resume from S3
Date: Wed, 4 Nov 2015 19:54:57 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.11.1511041949470.4032@nanos> (raw)
In-Reply-To: <12EF70CDEA59BA47AD9EC69F20130B3401AACFCF@PGSMSX103.gar.corp.intel.com>
Lee,
On Wed, 4 Nov 2015, Lee, Zhuo-hao wrote:
> Before the system go to suspend (S3), if user create a timer with clockid
> CLOCK_REALTIME_ALARM/CLOCK_BOOTTIME_ALARM and set a "large" timeout value
> to this timer. The function alarmtimer_suspend will be called to setup
> a timeout value to RTC timer to avoid the system sleep over time. However,
> if the system wakeup early than RTC timeout, the RTC timer will not be cleared.
> And this will cause the hpet_rtc_interrupt come unexpectedly until the RTC
> timeout. To fix this problem, just adding alarmtimer_resume to cancel the
> RTC timer.
>
> Change-Id: I1db3948dd18ad20c25820e27f808da4511ddbf83
Can you please get rid of these Change-Ids? They carry no information
which is useful in the kernel changelogs.
> Signed-off-by: Zhuo-hao Lee <zhuo-hao.lee@intel.com>
> ---
> kernel/time/alarmtimer.c | 15 +++++++++++++++
> 1 file changed, 15 insertions(+)
>
> diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
> index fe75444..7f7c8ea 100644
> --- a/kernel/time/alarmtimer.c
> +++ b/kernel/time/alarmtimer.c
> @@ -271,11 +271,25 @@ static int alarmtimer_suspend(struct device *dev)
> __pm_wakeup_event(ws, MSEC_PER_SEC);
> return ret;
That patch is white space damaged. Instead of 1 TAB it contains a
random number of spaces. The Documentation directory has explanations
how to setup your mail client proper, or just ask your co-workers.
Other than that, the patch looks correct.
Thanks,
tglx
parent reply other threads:[~2015-11-04 18:55 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <12EF70CDEA59BA47AD9EC69F20130B3401AACFCF@PGSMSX103.gar.corp.intel.com>]
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=alpine.DEB.2.11.1511041949470.4032@nanos \
--to=tglx@linutronix.de \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhuo-hao.lee@intel.com \
--cc=zhuohao.lee82@gmail.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
all inboxes | Powered by JetHome®