From: Thomas Gleixner <tglx@linutronix.de>
To: george@mvista.com
Cc: Lee Revell <rlrevell@joe-job.com>,
Linus Torvalds <torvalds@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [PATCH] Clean up of hrtimer code.
Date: Thu, 19 Jan 2006 22:09:14 +0100 [thread overview]
Message-ID: <1137704954.7947.65.camel@localhost.localdomain> (raw)
In-Reply-To: <43CFFC60.8010405@mvista.com>
George,
On Thu, 2006-01-19 at 12:53 -0800, George Anzinger wrote:
> > The assumption that the CLOCK_REALTIME/MONOTONIC relationship is valid
> > for all additional clocks is not correct.
>
> Well, it is until it isn't. There really does need to be a paring of some
> sort to sort out the ABS flag.
How is this applicable to some additional non posix clocks ? It applies
to CLOCK_MONOTONIC and CLOCK_REALTIME, but nothing speaks against
implementing CLOCK_WHATEVER with a totally different behaviour vs. the
ABS_TIME flag. Am I missing something ?
> >>
> >> static inline int common_timer_create(struct k_itimer *new_timer)
> >> {
> >>- hrtimer_init(&new_timer->it.real.timer, new_timer->it_clock);
> >
> >
> > I kept that init as a dummy one. Thats simpler than adding all the
> > if(!base) stuff into the hrtimer code. Not having those checks gives a
> > nice oops, when somebody tries to access a non initialized hrtimer !
>
> An additional problem that you may want to address it that the SIGEV_NONE
> timers never get their time set (that being done by being put in the timer
> queue) and so the return value on a timer_gettime() is wrong. I have updated
> the absolute timer test on sourceforge (in the CVS) to test for this, and, of
> course it fails. I, in one version, added a NO_QUEUE flag to the mode to
> tell the enqueue_timer code to return just prior to actually doing the
> enqueue to handle this. The other possibility is to fill the expire time in
> in posix-timers.c, but that means it has to do stuff that is already coded in
> enqueue_timer. Your choice, but currently what happens is wrong.
Thanks for pointing this out. I fix this before pushing stuff.
tglx
next prev parent reply other threads:[~2006-01-19 21:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-19 1:54 George Anzinger
2006-01-19 20:18 ` Thomas Gleixner
2006-01-19 20:53 ` George Anzinger
2006-01-19 21:09 ` Thomas Gleixner [this message]
2006-01-19 21:50 ` George Anzinger
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=1137704954.7947.65.camel@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=akpm@osdl.org \
--cc=george@mvista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rlrevell@joe-job.com \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome