All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] [patch, minor] xnpipe_recv and xntimer_get_timeout_periodic()
Date: Mon, 21 Aug 2006 20:02:02 +0200	[thread overview]
Message-ID: <1156183323.4321.14.camel@domain.hid> (raw)
In-Reply-To: <b647ffbd0608211045m24073f66s7fcbf56c5ed78f4f@domain.hid>

On Mon, 2006-08-21 at 19:45 +0200, Dmitry Adamushko wrote:
> 
> 
> On 21/08/06, Philippe Gerum <rpm@xenomai.org> wrote:
>         On Mon, 2006-08-21 at 10:36 +0200, Dmitry Adamushko wrote:
>         
>         > [ timer.c.patch] xnticks_t is unsigned while (as I
>         understand)
>         > "xntlholder_date(&timer->plink) - nkpod->jiffies" can be
>         negative.
> 
> ok, I somehow missed a check for xntimer_running_p() in
> xntimer_get_timeout(). I bet it was not there when I was looking at
> this part of code yesterday or maybe I just had too much ummmm
> wonderful belgium beer :o)

It's been there since the fusion times! Ok, it must be the beer... :o>

> 
> Actually xntimer_get_timeout() should be called with nklock held + irq
> off as it must be atomic. But anyway, this is how it's used in all
> places and it's probably not supposed to be used "as is" from any
> upper layer. So it's ok.
> 

Indeed.

> 
> 
> -- 
> Best regards,
> Dmitry Adamushko
-- 
Philippe.




  reply	other threads:[~2006-08-21 18:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-21  8:36 [Xenomai-core] [patch, minor] xnpipe_recv and xntimer_get_timeout_periodic() Dmitry Adamushko
2006-08-21  9:36 ` Philippe Gerum
2006-08-21  9:49 ` Philippe Gerum
2006-08-21 17:45   ` Dmitry Adamushko
2006-08-21 18:02     ` Philippe Gerum [this message]
2006-08-21 10:02 ` Philippe Gerum
2006-08-21 10:47   ` Dmitry Adamushko
2006-08-21 11:27     ` Philippe Gerum
     [not found]       ` <b647ffbd0608210446v38656cecxc231dba4e8f55dc2@domain.hid>
2006-08-21 11:47         ` Dmitry Adamushko
2006-08-21 12:45           ` Philippe Gerum

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=1156183323.4321.14.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=dmitry.adamushko@domain.hid \
    --cc=xenomai@xenomai.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.