Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-05 Thread Feng Tang
On Tue, Mar 05, 2013 at 02:17:59PM +0800, John Stultz wrote: > On 03/05/2013 12:32 PM, Jason Gunthorpe wrote: > >On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: > > > >>>// Drops some small precision along the way but is simple.. > >>>static inline u64 cyclecounter_cyc2ns_128(const struc

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread Feng Tang
On Mon, Mar 04, 2013 at 09:32:03PM -0700, Jason Gunthorpe wrote: > On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: > > > You may want to also CC the maintainers of all the ARM subsystems that > > > use read_persistent_clock and check with them to ensure this new > > > interface will let

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread John Stultz
On 03/05/2013 12:32 PM, Jason Gunthorpe wrote: On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: // Drops some small precision along the way but is simple.. static inline u64 cyclecounter_cyc2ns_128(const struct cyclecounter *cc, cycle_t cycle

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread Jason Gunthorpe
On Tue, Mar 05, 2013 at 11:53:02AM +0800, Feng Tang wrote: > > // Drops some small precision along the way but is simple.. > > static inline u64 cyclecounter_cyc2ns_128(const struct cyclecounter *cc, > > cycle_t cycles) > > { > > u64 max = U64_MAX/cc->

Re: [RFC PATCH v2 0/4] Add support for S3 non-stop TSC support.

2013-03-04 Thread Feng Tang
Hi Jason, Thanks for the review and suggestions! On Mon, Mar 04, 2013 at 08:20:36PM -0700, Jason Gunthorpe wrote: > On Tue, Mar 05, 2013 at 02:34:25AM +, Tang, Feng wrote: > > Hi Jason, > > > > Sorry, I forgot to add you in cc list in the first place. Please > > help to review the patch seri