From: Tony Lindgren <tony@atomide.com>
To: Hiroshi.DOYU@nokia.com
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH 1/1] ARM: OMAP: Fix inconsistency of completion in retu-rtc
Date: Wed, 15 Aug 2007 03:56:58 -0700 [thread overview]
Message-ID: <20070815105657.GM19754@atomide.com> (raw)
In-Reply-To: <11871600384074-git-send-email-Hiroshi.DOYU@nokia.com>
* Hiroshi.DOYU@nokia.com <Hiroshi.DOYU@nokia.com> [070814 23:52]:
> From: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
>
> There was the case that multiple users can wait for completion.
>
> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
> ---
> drivers/cbus/retu-rtc.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/cbus/retu-rtc.c b/drivers/cbus/retu-rtc.c
> index b36fd06..5d43520 100644
> --- a/drivers/cbus/retu-rtc.c
> +++ b/drivers/cbus/retu-rtc.c
> @@ -328,7 +328,7 @@ DECLARE_WORK(retu_rtca_work, retu_rtca_expired);
> static void retu_rtcs_interrupt(unsigned long unused)
> {
> retu_ack_irq(RETU_INT_RTCS);
> - complete(&retu_rtc_sync);
> + complete_all(&retu_rtc_sync);
> }
>
> static void retu_rtca_interrupt(unsigned long unused)
> @@ -435,7 +435,7 @@ static struct platform_device retu_rtc_device = {
> /* This function provides syncronization with the RTCS interrupt handler */
> static void retu_rtc_barrier(void)
> {
> - init_completion(&retu_rtc_sync);
> + INIT_COMPLETION(retu_rtc_sync);
> retu_ack_irq(RETU_INT_RTCS);
> retu_enable_irq(RETU_INT_RTCS);
> wait_for_completion(&retu_rtc_sync);
> --
Pushing today.
Tony
prev parent reply other threads:[~2007-08-15 10:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-15 6:40 [PATCH 1/1] ARM: OMAP: Fix inconsistency of completion in retu-rtc Hiroshi.DOYU
2007-08-15 10:56 ` Tony Lindgren [this message]
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=20070815105657.GM19754@atomide.com \
--to=tony@atomide.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=linux-omap-open-source@linux.omap.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 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.