Return-Path: Received: from us-smtp-2.mimecast.com ([207.211.31.81]:60931 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbgFPJfP (ORCPT ); Tue, 16 Jun 2020 05:35:15 -0400 Subject: Re: [kvm-unit-tests PATCH v9 06/12] s390x: clock and delays caluculations References: <1592213521-19390-1-git-send-email-pmorel@linux.ibm.com> <1592213521-19390-7-git-send-email-pmorel@linux.ibm.com> From: Thomas Huth Message-ID: <81557eed-ff8e-2076-44f7-2174befce7b5@redhat.com> Date: Tue, 16 Jun 2020 11:35:06 +0200 MIME-Version: 1.0 In-Reply-To: <1592213521-19390-7-git-send-email-pmorel@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-s390-owner@vger.kernel.org List-ID: To: Pierre Morel , kvm@vger.kernel.org Cc: linux-s390@vger.kernel.org, frankja@linux.ibm.com, david@redhat.com, cohuck@redhat.com On 15/06/2020 11.31, Pierre Morel wrote: > The hardware gives us a good definition of the microsecond, > let's keep this information and let the routine accessing > the hardware keep all the information and return microseconds. > > Calculate delays in microseconds and take care about wrapping > around zero. > > Define values with macros and use inlines to keep the > milliseconds interface. > > Signed-off-by: Pierre Morel > --- > lib/s390x/asm/time.h | 29 +++++++++++++++++++++++++++-- > 1 file changed, 27 insertions(+), 2 deletions(-) In case you respin, there is a typo in the title ("caluculations") ... otherwise this can be fixed when the patch gets picked up. Reviewed-by: Thomas Huth