Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp448955ybl; Wed, 4 Dec 2019 05:32:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzV9hgqEWmuPskk6PAOnPOUc6JsIXOl8N3hzUDzpkkSdjrkEcB5ZmVmEpWXNFnlEpvI92x1 X-Received: by 2002:a9d:27c4:: with SMTP id c62mr2482957otb.292.1575466335377; Wed, 04 Dec 2019 05:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575466335; cv=none; d=google.com; s=arc-20160816; b=hC7EG30a+pzKZGoyvSi1ibOtLCxZgeSRNc+cW/3aRFHuILxmGLCU6fJh4iIfwNDTNO wVTG+BtKm8mLfG5oJ2x7KvyB9g3JNUwFXIouFRqD8OzODqyjXfIDSEdrv4OsDB43KuG3 z4t5vdR2ik4RbF9l1gF7mfzU/+un4niK7PVC19epa2h1Ud5O5kEkZZmwdceRBi0ov6uu htTzGenEmuCwyhNAuZ2hpR53TUgsKmSiSBy2iaVrmz0JnnbQL33XBGOgLVdIcFOG0dCG b6Q0790lCcyVrQemsPt016QMq9pvDkalqvCZtaUMc/+x6dlj/E3dnYDthVK+egVuzDuO 8+gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=xopXaKfUykgw8VgO0t45+3BsNV8aYJ10g0SJHW5KWkU=; b=tSiIS0V1wq+qKmT/X6YTBmWQskKPiwtYzLT9ztUj/GDhxmlOb1oDWFI0xA/svnyBzr LULaIEvHHwlLndmQyE4aQsr4B+9DUthlqEe8h2yUpDC2aVd0b130GC1NKeMYKcTJFRiT ddtXTEcWuBtm1z2TD1AuXPHt/k3zYdvzzYjiwZOd88aTYht+/uBmWZUDV5CG9GDQlSnG YSSIPIA9UzAV5dQcNK28b99VbW3eKG1goy8VpB2KsLeIIOimB4emm7FRHDenFHbrDkw9 qK/iL1zJSOOeZ/WkLPqjvPfhU6lBHWUkQifkLl6EOFcZ1xXAo4bYA0VTgcZB1w1ELnmv svjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v21si2085814otj.282.2019.12.04.05.32.02; Wed, 04 Dec 2019 05:32:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727963AbfLDNbA (ORCPT + 99 others); Wed, 4 Dec 2019 08:31:00 -0500 Received: from bilbo.ozlabs.org ([203.11.71.1]:49673 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727850AbfLDNa6 (ORCPT ); Wed, 4 Dec 2019 08:30:58 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 47Sfqz4ZrXz9sRK; Thu, 5 Dec 2019 00:30:55 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 552263456215ada7ee8700ce022d12b0cffe4802 In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, arnd@arndb.de Subject: Re: [PATCH v4 3/8] powerpc: Fix vDSO clock_getres() Message-Id: <47Sfqz4ZrXz9sRK@ozlabs.org> Date: Thu, 5 Dec 2019 00:30:55 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_resolution depends on the enablement of the high > resolution timers that can happen either at compile or at run time. > > Fix the powerpc vdso implementation of clock_getres keeping a copy of > hrtimer_resolution in vdso data and using that directly. > > Fixes: a7f290dad32e ("[PATCH] powerpc: Merge vdso's and add vdso support > to 32 bits kernel") > Cc: stable@vger.kernel.org > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Signed-off-by: Vincenzo Frascino > Reviewed-by: Christophe Leroy > Acked-by: Shuah Khan > [chleroy: changed CLOCK_REALTIME_RES to CLOCK_HRTIMER_RES] > Signed-off-by: Christophe Leroy Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/552263456215ada7ee8700ce022d12b0cffe4802 cheers