Re: [RFC][patch 11/12] timekeeper read clock helper functions

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Thursday, July 30, 2009 - 2:39 pm

On Wed, 2009-07-29 at 15:41 +0200, Martin Schwidefsky wrote:

I know it seems nice to have it here, but I think these helpers would be
more reusable in other contexts if they took the cycle_now value as an
argument. Also I'd drop the ntp bit, just to avoid confusing it with
some ntp specific function. So:

 timekeeping_get_ns(cycle_t now);
 timekeeping_get_ns_raw(cycle_t now);

That way in some situations we don't have to make two accesses to the
hardware if we want to get both values at the same point.

Seem reasonable?

thanks
-john




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

Messages in current thread:
[RFC][patch 00/12] clocksource / timekeeping rework V2, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 01/12] introduce timekeeping_leap_insert, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 02/12] remove clocksource inline functions, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 04/12] clocksource watchdog highres enablement, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 05/12] clocksource watchdog resume logic, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 09/12] add xtime_shift and ntp_error_shift to ..., Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 10/12] move NTP adjusted clock multiplier to s ..., Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 11/12] timekeeper read clock helper functions, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
[RFC][patch 12/12] update clocksource with stop_machine, Martin Schwidefsky, (Wed Jul 29, 6:41 am)
Re: [RFC][patch 11/12] timekeeper read clock helper functions, john stultz, (Thu Jul 30, 2:39 pm)
Re: [RFC][patch 02/12] remove clocksource inline functions, Christoph Hellwig, (Thu Jul 30, 2:46 pm)
Re: [RFC][patch 11/12] timekeeper read clock helper functions, Martin Schwidefsky, (Fri Jul 31, 12:45 am)
Re: [RFC][patch 10/12] move NTP adjusted clock multiplier ..., Martin Schwidefsky, (Fri Jul 31, 12:52 am)
Re: [RFC][patch 09/12] add xtime_shift and ntp_error_shift ..., Martin Schwidefsky, (Fri Jul 31, 1:13 am)
Re: [RFC][patch 10/12] move NTP adjusted clock multiplier ..., Martin Schwidefsky, (Fri Jul 31, 1:27 am)
Re: [RFC][patch 10/12] move NTP adjusted clock multiplier ..., Martin Schwidefsky, (Fri Jul 31, 2:00 am)
Re: [RFC][patch 10/12] move NTP adjusted clock multiplier ..., Martin Schwidefsky, (Mon Aug 3, 1:02 am)
Re: [RFC][patch 10/12] move NTP adjusted clock multiplier ..., Martin Schwidefsky, (Thu Aug 13, 4:23 am)