From: Ingo Molnar <mingo@elte.hu>
To: john stultz <johnstul@us.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Magnus Damm <magnus.damm@gmail.com>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
lethal@linux-sh.org, mingo@redhat.com
Subject: Re: [RFC] Reentrant clock sources
Date: Wed, 26 Nov 2008 04:52:51 +0100 [thread overview]
Message-ID: <20081126035251.GA3707@elte.hu> (raw)
In-Reply-To: <1227669624.6298.11.camel@localhost>
* john stultz <johnstul@us.ibm.com> wrote:
> On Wed, 2008-11-26 at 04:07 +0100, Ingo Molnar wrote:
> > * Thomas Gleixner <tglx@linutronix.de> wrote:
> >
> > > > + cycle_t (*vread)(struct clocksource *cs);
> > >
> > > This is crap. vread can not access the clocksource.
> >
> > i think 'reentrant' in the sense of creating self-sufficient driver
> > entities. vread wont (and shouldnt) call ->vread() recursively - but
> > it might want to access fields on the clocksource.
>
> I think Thomas' issue is that vread() *cannot* access fields on the
> clocksource (since vread has to be careful not to access any
> non-vsyscall mapped memory).
ah, yeah - i was thinking about ->read().
in a more dynamic driver model the clocksource driver could store
dynamic data like target port/memory address next to the clocksource
driver, and access that - if the driver pointer is passed in.
> However not all clocksources use vread(), but really I'm not quite
> clear on what one would want to access in the clocksource structure
> when making a ->read() call.
>
> So maybe a further description of what specific need motivates this
> change would be helpful? The brief description of power management
> doesn't quite click in my head yet.
yeah, that would be nice.
Ingo
next prev parent reply other threads:[~2008-11-26 3:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 13:28 [RFC] Reentrant clock sources Magnus Damm
2008-11-25 14:55 ` Ingo Molnar
2008-11-25 21:22 ` Thomas Gleixner
2008-11-26 3:07 ` Ingo Molnar
2008-11-26 3:20 ` john stultz
2008-11-26 3:52 ` Ingo Molnar [this message]
2008-11-26 5:21 ` Magnus Damm
2008-11-26 5:32 ` Magnus Damm
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=20081126035251.GA3707@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=johnstul@us.ibm.com \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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