Re: [PATCH v4.15.7 1/1] x86/vdso: handle clock_gettime(CLOCK_MONOTONIC_RAW, &ts) in VDSO

2018-03-08 Thread Thomas Gleixner
On Tue, 6 Mar 2018, Jason Vas Dias wrote: Please don't submit patches against randomly chosen stable kernel versions. Development happens on top of Linus tree or of a subsystem specific tree. > +notrace static int __always_inline do_monotonic_raw( struct timespec *ts) > +{ > +volatile u32

[PATCH v4.15.7 1/1] x86/vdso: handle clock_gettime(CLOCK_MONOTONIC_RAW, &ts) in VDSO

2018-03-06 Thread Jason Vas Dias
Handling clock_gettime( CLOCK_MONOTONIC_RAW, ×pec) by calling vdso_fallback_gettime(), ie. syscall, is too slow - latencies of 300-700ns are common on Haswell (06:3C) CPUs . This patch against the 4.15.7 stable branch makes the VDSO handle clock_gettime(CLOCK_GETTIME_RAW, &ts) by issuing rdt