Re: [PATCH RFC 2/8] clock device: convert clock_gettime

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Tuesday, November 9, 2010 - 2:10 pm

On Tue, 2010-11-09 at 09:23 +0100, Richard Cochran wrote:

Looks like the cpu timers bit landed in 2.6.11 from Roland.

Roland: Might be nice to get your thoughts on the proposed changes here.



This does seem reasonable. Any one have an objection with this?



This seems a little over-reaching. I'm not sure I see what benefit would
come from having clock_devices for the static clock_ids? The extra mutex
locking and status/null checking for the clock_device would would just
add unnecessary overhead to the performance critical clock_gettime call.

And would each cpuclock need a clock_device too? 



Yes, I agree it could use some cleanup. And again, this was only a nit
with the early version of the patch, so not a huge issue right now. But
before these go upstream, we'll need to address this in some way (be it
your lookup table above or something else).

thanks
-john

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Thu Nov 4, 12:26 pm)
[PATCH RFC 1/8] Introduce dynamic clock devices, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 3/8] clock device: convert clock_getres, Richard Cochran, (Thu Nov 4, 12:28 pm)
[PATCH RFC 4/8] clock device: convert clock_settime, Richard Cochran, (Thu Nov 4, 12:29 pm)
[PATCH RFC 5/8] clock device: convert timer_create, Richard Cochran, (Thu Nov 4, 12:29 pm)
[PATCH RFC 6/8] clock device: convert timer_delete, Richard Cochran, (Thu Nov 4, 12:30 pm)
[PATCH RFC 7/8] clock device: convert timer_gettime, Richard Cochran, (Thu Nov 4, 12:30 pm)
[PATCH RFC 8/8] clock device: convert timer_settime, Richard Cochran, (Thu Nov 4, 12:30 pm)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Arnd Bergmann, (Sun Nov 7, 11:38 pm)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Sun Nov 7, 11:56 pm)
Re: [PATCH RFC 0/8] Dynamic clock devices, john stultz, (Mon Nov 8, 4:01 pm)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Tue Nov 9, 1:23 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Tue Nov 9, 3:26 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Tue Nov 9, 5:47 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, john stultz, (Tue Nov 9, 2:10 pm)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Arnd Bergmann, (Wed Nov 10, 3:16 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Mon Nov 15, 2:34 am)
Re: [PATCH RFC 2/8] clock device: convert clock_gettime, Richard Cochran, (Mon Nov 15, 2:41 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Paul Mundt, (Mon Nov 15, 3:01 am)
Re: [PATCH RFC 0/8] Dynamic clock devices, Richard Cochran, (Thu Nov 18, 9:33 am)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Richard Cochran, (Sat Dec 4, 7:55 am)
Re: [PATCH RFC 1/8] Introduce dynamic clock devices, Arnd Bergmann, (Mon Dec 6, 7:14 am)