Re: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-29 Thread Paul Bolle
On ma, 2015-07-27 at 17:46 -0700, Christopher Hall wrote: > --- /dev/null > +++ b/arch/x86/include/asm/art.h > +#ifndef CONFIG_X86_ART > + > +static inline int setup_art(void) > +{ > + return 0; > +} > + > +static inline bool has_art(void) > +{ > + return false; > +} > + > +static inline i

RE: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-28 Thread Hall, Christopher S
rg; lkml; > netdev@vger.kernel.org > Subject: Re: [PATCH 3/5] Add calls to translate Always Running Timer > (ART) to system time > > On Mon, Jul 27, 2015 at 5:46 PM, Christopher Hall > wrote: > > +static bool checked_art_to_tsc(cycle_t *tsc) > > +{ > > + if (!has_art

Re: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-28 Thread Andy Lutomirski
gt;> richardcoch...@gmail.com; mi...@redhat.com; Kirsher, Jeffrey T; Ronciak, >> John; h...@zytor.com; x...@kernel.org >> Cc: linux-ker...@vger.kernel.org; netdev@vger.kernel.org; Borislav >> Petkov >> Subject: Re: [PATCH 3/5] Add calls to translate Always Running Timer >> (

RE: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-28 Thread Hall, Christopher S
h...@zytor.com; x...@kernel.org > Cc: linux-ker...@vger.kernel.org; netdev@vger.kernel.org; Borislav > Petkov > Subject: Re: [PATCH 3/5] Add calls to translate Always Running Timer > (ART) to system time > > On 07/27/2015 05:46 PM, Christopher Hall wrote: > > * art_to_mono64 >

Re: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-27 Thread John Stultz
On Mon, Jul 27, 2015 at 5:46 PM, Christopher Hall wrote: > +static bool checked_art_to_tsc(cycle_t *tsc) > +{ > + if (!has_art()) > + return false; > + *tsc = art_to_tsc(*tsc); > + return true; > +} > + > +static int art_to_rawmono64(struct timespec64 *rawmono, cycl

Re: [PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-27 Thread Andy Lutomirski
On 07/27/2015 05:46 PM, Christopher Hall wrote: * art_to_mono64 * art_to_rawmono64 * art_to_realtime64 Intel audio and PCH ethernet devices use the Always Running Timer (ART) to relate their device clock to system time Signed-off-by: Christopher Hall --- arch/x86/Kconfig | 12

[PATCH 3/5] Add calls to translate Always Running Timer (ART) to system time

2015-07-27 Thread Christopher Hall
* art_to_mono64 * art_to_rawmono64 * art_to_realtime64 Intel audio and PCH ethernet devices use the Always Running Timer (ART) to relate their device clock to system time Signed-off-by: Christopher Hall --- arch/x86/Kconfig | 12 arch/x86/include/asm/art.h | 42 ++