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

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 int

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

2015-07-28 Thread Hall, Christopher S
l.org; lkml; > net...@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-kernel@vger.kernel.org; net...@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-kernel@vger.kernel.org; net...@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-28 Thread Hall, Christopher S
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 christopher.s.h...@intel.com wrote: +static bool checked_art_to_tsc(cycle_t *tsc) +{ + if (!has_art()) + return false

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

2015-07-28 Thread Hall, Christopher S
Cc: linux-kernel@vger.kernel.org; net...@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 * art_to_rawmono64 * art_to_realtime64 Intel audio

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

2015-07-28 Thread Andy Lutomirski
...@gmail.com; mi...@redhat.com; Kirsher, Jeffrey T; Ronciak, John; h...@zytor.com; x...@kernel.org Cc: linux-kernel@vger.kernel.org; net...@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

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,

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

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 christopher.s.h...@intel.com ---

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 christopher.s.h...@intel.com 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