Re: [PATCH v4 3/8] powerpc: Fix vDSO clock_getres()

2019-12-04 Thread Michael Ellerman
On Mon, 2019-12-02 at 07:57:29 UTC, Christophe Leroy wrote: > From: Vincenzo Frascino > > clock_getres in the vDSO library has to preserve the same behaviour > of posix_get_hrtimer_res(). > > In particular, posix_get_hrtimer_res() does: > sec = 0; > ns = hrtimer_resolution; > and hrtimer

[PATCH v4 3/8] powerpc: Fix vDSO clock_getres()

2019-12-02 Thread Christophe Leroy
From: Vincenzo Frascino clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can h