Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21162004rwd; Thu, 29 Jun 2023 11:51:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJ7FKD5dpYQbSwbBVdLyx+EjX1V5c8zULY1HpusrKrJzbzO14fXcw8EBcAFb3ZTN6djISg X-Received: by 2002:a17:902:d4c7:b0:1b6:79e3:636d with SMTP id o7-20020a170902d4c700b001b679e3636dmr12835plg.58.1688064708973; Thu, 29 Jun 2023 11:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688064708; cv=none; d=google.com; s=arc-20160816; b=Dbj6W5HOPDCPpPBkD4P2VPUSlfJuBEAXAiY61PQS0VIttwEqIZt+5Z5PnWqPAS/Ami 397zmBSaI2pLjLSk1QnL9bY4xrc0vYeUlsFwwA8uh+zY98rRIufKj2i90GKAXWqUwltB BGoqf3o4ZCd5EFLF1lzp2kpnqx043TSBHXX8k87nqrOxlq1N0DRCb9+6NpJB8oqcTH2d 3qNFHSwS57e6WeGtgl03XMyybVrGRTcEYml+D7O0CrO9z0lrOKhknA+ItLoyPFV6CSfv TJWfL07vqk0ThjW3WAx9c4CQjVzK7qFQC43gWRA/hrsQJiM/VpriRG9CDKhpEW5+hojU 9kLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=Y5na3ht2L3FpaEOFqHWRzLsgtpVnZz85aiq3JLJ8S7Q=; fh=7+BSne7+Nsu2Q4IouaoanoIP6ArVtkXIHqdpI0+dNj0=; b=V+adoEQ7/M7zcEckQG+6rNhfdraWDop62CqusBysL2uMMI/vnEquzJVya5ryMtpI5B trrzt5sJdvA7lInhE+2tReNSbk840LyrqZImiwFKemj3KwttLFoh+wPn/PJMkJaKmEo2 LbkqT1X47oEsPcEatPZOPQ5Ya6FlBIBIgTE0+cHvaZWpX9g1kU+gGZw3XfdmCtLmuebc IRpKgsWpOT0Mih24jNJRZ4T7aK2DOGgs2x9NrR9MFLNxa6nSrYhEvoApcp7agRxQjehF JsmyUxcnM+qm93kRatNej9VY1mmgOhKCKJwBIibV7HgPOxGb7d7HY227WQIEAmAEk62S SaYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="kgUbA3G/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s9-20020a17090330c900b001b8061add94si7531985plc.131.2023.06.29.11.51.30; Thu, 29 Jun 2023 11:51:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="kgUbA3G/"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232201AbjF2Srx (ORCPT + 99 others); Thu, 29 Jun 2023 14:47:53 -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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.