public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: John Stultz <johnstul@us.ibm.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 04/10] timer_inc: timer helper code, clockevent only
Date: Wed, 03 Dec 2008 16:35:29 +0000	[thread overview]
Message-ID: <1228322129.16665.53.camel@jstultz-laptop> (raw)
In-Reply-To: <20081201103300.26620.32206.sendpatchset@rx1.opensource.se>

On Thu, 2008-12-04 at 00:30 +0900, Magnus Damm wrote:
> On Wed, Dec 3, 2008 at 1:04 PM, john stultz <johnstul@us.ibm.com> 
> > I definitely am interesting in trying to figure out if the clockevent
> > and clocksource interfaces need refinement to better adapt to hardware
> > if they are not sufficient. But I'm very hesitant to recommend creating
> > super-interfaces that try to span both.
> 
> The timer_inc interface sure is a something that spans both. Actually,
> that's the only thing it does - keeps track of the aggregated state
> and makes sure the timer is disabled whenever it's unused.
> 
> So maybe it's better to scrap the timer_inc part and just include that
> logic in the cmt driver? We can always go back later on if there is a
> direct need.

I think I'd be happier with this. Hopefully this will make any needed
changes to the clockevent or clocksource code more apparent. 

> > It just seems to me that most of the timer_inc code could be pushed down
> > into the cmt_driver to cut out the middle man. It reduces the number of
> > generic interfaces we have to deal with, and lessens the indirection.
> >
> > Again, I may be missing a subtlety of the timer_inc code, so keep
> > hammering on me if I'm just being thick headed. :)
> 
> You're not so think headed. =) I don't mind either way with timer_inc!
> 
> Regarding read2() patch, the enable()/disable() patch and a future
> unregistration patch - I still like to see that included. Do you see
> any disadvantages with that?

The enable/disable bits seem great. The read2() bit I'm not against, but
would like to see how it ends up being used before we commit to the
interface change. And unregistration is something that's been needed.

Thanks again for dealing with my feedback. I know its not fun to rework
or throwout code and start again. But I think in this case it will help
the amount of future maintenance needed.

thanks
-john


  parent reply	other threads:[~2008-12-03 16:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01 10:33 [PATCH 04/10] timer_inc: timer helper code, clockevent only Magnus Damm
2008-12-01 20:29 ` john stultz
2008-12-02  5:30 ` Magnus Damm
2008-12-03  4:04 ` john stultz
2008-12-03 15:30 ` Magnus Damm
2008-12-03 16:35 ` John Stultz [this message]
2008-12-04 13:52 ` 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=1228322129.16665.53.camel@jstultz-laptop \
    --to=johnstul@us.ibm.com \
    --cc=linux-sh@vger.kernel.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