From: Thomas Gleixner <tglx@linutronix.de>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: Andrew Morton <akpm@osdl.org>,
LKML <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: [patch 5/8] hrtimer remove state field
Date: Sat, 18 Mar 2006 09:46:22 +0100 [thread overview]
Message-ID: <1142671582.17279.32.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0603172242370.16802@scrub.home>
On Fri, 2006-03-17 at 23:07 +0100, Roman Zippel wrote:
> > The general locking rules would be still the same and I dont see
> > increased flexibility at all.
>
> Current users already do the serialize the calls into hrtimer themselves
> (stopping and restarting), which can make the locking even simpler.
Serialization of the users does not help for protecting the timer queues
especially not on SMP.
Can you please give a real example how to simplify this. Nobody has any
objections to simplify locking when possible. But unproven claims in
repeated form do not help. After a while they just get annoying.
> > > If we tightened a bit what a user is allowed to
> > > do, we could gain flexibility on the other side, e.g. allow drivers to
> > > create timer sources or how to integrate cpu timer.
> >
> > -ENOPARSE. Can you please explain what "allow drivers to create timer
> > sources" means and why the above locking is in the way ?
>
> For example dynamically attaching a timer_base to a clock source (e.g. to
> create a monotonic timer independent of NTP adjustments). Right now as
> soon as any timer_base is active it cannot be deconfigured again due to
> pointers to it from timers, so this would require different locking.
I do not really understand what you want to achieve.
Timer bases are related to clock sources. You can switch the clock
source of the CLOCK_MONOTONIC timer base at any given time to a
different one which is not NTP adjusted. Where is the problem?
The timer base does not care about the underlying clock source at all.
All it knows of it is the function which reads the current time related
to this clock. When the underlying clock changes the way it generates
current time then the timer base does not care at all.
This is not a problem of hrtimers. Its a problem of the clock source
abstraction layer like John Stultz GTOD framework.
If you want to have timer bases with dynamic clock sources which can go
away then you have to take care of much more than locking. But I really
do not see a need for this.
tglx
next prev parent reply other threads:[~2006-03-18 8:46 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-12 10:37 [patch 0/8] hrtimer updates Thomas Gleixner
2006-03-12 10:37 ` [patch 1/8] hrtimer optimize softirq runqueues Thomas Gleixner
2006-03-12 10:37 ` [patch 2/8] Pass current time to hrtimer_forward() Thomas Gleixner
2006-03-12 10:37 ` [patch 3/8] posix-timer cleanup common_timer_get() Thomas Gleixner
2006-03-12 10:37 ` [patch 4/8] hrtimer simplify nanosleep Thomas Gleixner
2006-03-12 10:37 ` [patch 5/8] hrtimer remove state field Thomas Gleixner
2006-03-12 12:13 ` Roman Zippel
2006-03-12 13:10 ` Thomas Gleixner
2006-03-12 13:26 ` Roman Zippel
2006-03-12 13:35 ` Thomas Gleixner
2006-03-12 13:55 ` Roman Zippel
2006-03-12 14:15 ` Thomas Gleixner
2006-03-12 14:30 ` Roman Zippel
2006-03-12 14:54 ` Thomas Gleixner
2006-03-12 15:17 ` Roman Zippel
2006-03-12 15:41 ` Thomas Gleixner
2006-03-12 16:00 ` Roman Zippel
2006-03-12 16:26 ` Thomas Gleixner
2006-03-12 16:57 ` [patch] hrtimer remove replace state check by BUG_ON Thomas Gleixner
2006-03-16 1:05 ` [patch 5/8] hrtimer remove state field Roman Zippel
2006-03-16 9:01 ` Thomas Gleixner
2006-03-17 22:07 ` Roman Zippel
2006-03-18 8:46 ` Thomas Gleixner [this message]
2006-03-12 10:37 ` [patch 6/8] Remove it_real_value calculation from proc/*/stat Thomas Gleixner
2006-03-12 10:37 ` [patch 7/8] Remove DEFINE_KTIME and ktime_to_clock_t() Thomas Gleixner
2006-03-12 10:37 ` [patch 8/8] Remove nsec_t typedef Thomas Gleixner
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=1142671582.17279.32.camel@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=zippel@linux-m68k.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