Re: RESEND [PATCH v6 11/12] lib: vdso: Add support for CLOCK_BOOTTIME

2018-10-01 Thread Mark Salyzyn
On 10/01/2018 11:15 AM, Thomas Gleixner wrote: On Mon, 1 Oct 2018, Mark Salyzyn wrote: +static notrace int do_boottime(const struct vdso_data *vd, struct timespec *ts) +{ + u32 seq, mult, shift; + u64 nsec, cycle_last; + vdso_wtm_clock_nsec_t wtm_nsec; + + /* open codi

Re: RESEND [PATCH v6 11/12] lib: vdso: Add support for CLOCK_BOOTTIME

2018-10-01 Thread Thomas Gleixner
On Mon, 1 Oct 2018, Mark Salyzyn wrote: > > +static notrace int do_boottime(const struct vdso_data *vd, struct timespec > *ts) > +{ > + u32 seq, mult, shift; > + u64 nsec, cycle_last; > + vdso_wtm_clock_nsec_t wtm_nsec; > + > + /* open coding timespec_add_ns to save a ts->tv_nsec

RESEND [PATCH v6 11/12] lib: vdso: Add support for CLOCK_BOOTTIME

2018-10-01 Thread Mark Salyzyn
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into lib/vdso and unify both implementations to

RESEND [PATCH v6 11/12] lib: vdso: Add support for CLOCK_BOOTTIME

2018-06-18 Thread Mark Salyzyn
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into lib/vdso and unify both implementations to