From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9CB12EB64D9 for ; Thu, 29 Jun 2023 18:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232907AbjF2Sr4 (ORCPT ); Thu, 29 Jun 2023 14:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbjF2Src (ORCPT ); Thu, 29 Jun 2023 14:47:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D4473583 for ; Thu, 29 Jun 2023 11:47:32 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1688064450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y5na3ht2L3FpaEOFqHWRzLsgtpVnZz85aiq3JLJ8S7Q=; b=kgUbA3G/3WN7nVCTDdoDfaaAOdeCb5mESQX5W884oOjTJONyT3LIiOK01e1aVbubT4Wb86 dWUgclTrMHRiJF54DVUHJRMJMLLO6Try8nLbXT0ieKsXlUWbdPz9CAK1cKqevxK8LQsOaz Hupw2mb3sGkdzxzvWRcA57brjpkKKr96g62Fff/YGZ1NCR2c6WZ6hVg2KFJXW+9Qh4Emex qr8kktdIyo13d90Ap4AVY4ELLuB/aYUglnkvKuDd0dCX5Aam6vC0gi5tmJ+5E+Ys4r/+Jj sCT90bSWQM1fAC5Q7SIwBSaayRNJHmvqhKVP5S5tbnx6z4zthjoiaHgp78UD/Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1688064450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y5na3ht2L3FpaEOFqHWRzLsgtpVnZz85aiq3JLJ8S7Q=; b=RvW7ZFL+WHPW6900QzCm9rPhgcol2STJu2mcqpMTQKmqE6J+bMXQOgHkIit7Etc7xVqwGl ZL6P5f5CbIpd7oDA== To: Frederic Weisbecker Cc: LKML , Anna-Maria Behnsen , John Stultz , Peter Zijlstra , Ingo Molnar , Stephen Boyd , Eric Biederman , Oleg Nesterov Subject: Re: [patch 14/45] posix-timers: Consolidate interval retrieval In-Reply-To: References: <20230606132949.068951363@linutronix.de> <20230606142031.816970056@linutronix.de> Date: Thu, 29 Jun 2023 20:47:30 +0200 Message-ID: <87ttuq14xp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 28 2023 at 15:08, Frederic Weisbecker wrote: > Le Tue, Jun 06, 2023 at 04:37:40PM +0200, Thomas Gleixner a =C3=A9crit : >> There is no point to collect the current interval in the posix clock >> specific settime() and gettime() callbacks. Just do it right in the comm= on >> code. >>=20 >> Signed-off-by: Thomas Gleixner > > The only difference I see is that we now return the old interval > even if the target is reaped, which probably doesn't matter anyway. But we don't return it to user space because ret !=3D 0 in that case.