From mboxrd@z Thu Jan 1 00:00:00 1970 From: shuah Subject: Re: [PATCH v5 2/3] s390: Fix vDSO clock_getres() Date: Thu, 30 May 2019 08:29:38 -0600 Message-ID: References: <20190528120446.48911-1-vincenzo.frascino@arm.com> <20190528120446.48911-3-vincenzo.frascino@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190528120446.48911-3-vincenzo.frascino@arm.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: Vincenzo Frascino , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Arnd Bergmann , Shuah Khan , Heiko Carstens , Paul Mackerras , Martin Schwidefsky , Thomas Gleixner , shuah List-Id: linux-arch.vger.kernel.org On 5/28/19 6:04 AM, Vincenzo Frascino wrote: > 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 happen either at compile or at run time. > > Fix the s390 vdso implementation of clock_getres keeping a copy of > hrtimer_resolution in vdso data and using that directly. > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Signed-off-by: Vincenzo Frascino > Acked-by: Martin Schwidefsky > --- > > Note: This patch is independent from the others in this series, hence it > can be merged singularly by the s390 maintainers. > Acked-by: Shuah Khan thanks, -- Shuah From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:43010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfE3O3l (ORCPT ); Thu, 30 May 2019 10:29:41 -0400 Subject: Re: [PATCH v5 2/3] s390: Fix vDSO clock_getres() References: <20190528120446.48911-1-vincenzo.frascino@arm.com> <20190528120446.48911-3-vincenzo.frascino@arm.com> From: shuah Message-ID: Date: Thu, 30 May 2019 08:29:38 -0600 MIME-Version: 1.0 In-Reply-To: <20190528120446.48911-3-vincenzo.frascino@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Vincenzo Frascino , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , Thomas Gleixner , Arnd Bergmann , shuah , Shuah Khan Message-ID: <20190530142938.QrTOuDpy1mksziV-SaszuJYzmK5WBW2KKYxudD_CY1U@z> On 5/28/19 6:04 AM, Vincenzo Frascino wrote: > 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 happen either at compile or at run time. > > Fix the s390 vdso implementation of clock_getres keeping a copy of > hrtimer_resolution in vdso data and using that directly. > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Signed-off-by: Vincenzo Frascino > Acked-by: Martin Schwidefsky > --- > > Note: This patch is independent from the others in this series, hence it > can be merged singularly by the s390 maintainers. > Acked-by: Shuah Khan thanks, -- Shuah