Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp77603lqb; Tue, 16 Apr 2024 09:13:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQgzxtzQmH+PdLr3fgCMBxiaTMIw+hOmvQV2omhvwARUmD+8QL0J6n3OlcWt3vSOKzPLLP86doDqx6Lhc4CvCafV1Zmr9hQ1+B04BYZw== X-Google-Smtp-Source: AGHT+IGDMi8+QB+Ay+2O0OaJUE8Pza+xxb5cDB09uk1W4S66NangQ7VyngjKbLfCXHQUDBYXTOaK X-Received: by 2002:a05:6512:4014:b0:518:7df6:d9e1 with SMTP id br20-20020a056512401400b005187df6d9e1mr13238959lfb.10.1713284024557; Tue, 16 Apr 2024 09:13:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713284024; cv=pass; d=google.com; s=arc-20160816; b=Y/SBZr4KQUqq3XgbH5nPW7oRC2cfgdffaBpDJ6jahfGKVOMoey11fGNNLLyGULjtUI Z+wFjNcWhHLcDwQynm4itvf9E5mgeSDI50Dg2dYBYtk/wQvsqxvA/DTv4hsks0v6xG7O Gh8/CCsRw8noYdAkUyVdGwarG2L9tABOoYGqv1Uda+UIObRqLw4rb3YtS8/rYlthYHHe cCtxWLoT83So6iJEpyYjr2ZsKkWTy+X1mdMTVTEt/U1gk1zIVI47tuGn0N6W5Q/4AdXT IJZ+7TPrkkCEIoC6iKSMTuRzDH7nKo/7FNAfyTRmUtEw2kjRfe+WapDWeAArTELvdVF4 qxcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=+3n9DTHYm/EkmX9oZRWIc3/YuhdZcuLGGOtL2I/84FI=; fh=MxOqrKe8Fax3kxE77rA0inxVaQwZCyEyqDk4Qwcbk14=; b=q3U/h3BxMZCemMSe/kboyqwfdsICTn498BEJD8X/HuEpvlpbgv2VzdFXjYmm7VXuUv NrHfY426O2O0sTLuHuEzDRgSl9NzgIcvAAsSB8LBkA/Hjd0g7hd602ho/brIrdoUC04t ucFLA4x6cTscxXwmIqmguUFp5MXkmkdq8htiH18mt4BM0DrKWxObZj1iuJvSOInHcXPr xgi10vNIHZunSv17cRm5iE7TXBk2f901s0+gPHx+rLXKEuO8lx9U8p3ysT5pV1SGwXkK S66E9abiW09AH8mPd3FwklLF6qmG1je3Xp37oVwc+P/kFiqdnLm7994j3i7eXXOmbe/W AVJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0iFBo3BG; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-147209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ov9-20020a170906fc0900b00a51c36021e2si5749229ejb.200.2024.04.16.09.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 09:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0iFBo3BG; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-147209-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4752B1F227F3 for ; Tue, 16 Apr 2024 16:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DCE6134406; Tue, 16 Apr 2024 16:13:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0iFBo3BG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sXzw1Q4G" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 458A7132C1F for ; Tue, 16 Apr 2024 16:12:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713283980; cv=none; b=EjOKaJO6p9aYlGusIiLJN6aOBQ9IHP4v6peFzaQ49BUBw3/f5PMoeXcBeN02MUpvruZ9nXZfmSIZVko78R8DOU1Sfrc+XoQf3xIekFEsQbhe7rP6WpQqy3j7DtEsog6EIrx0lLWDW27ibwkeg6RQ8HlCFJm7e+5K92PYX0ln32o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713283980; c=relaxed/simple; bh=ek2Uhj6jyWBHj/ELjUsynLoBx8LqHZN7YqgFHvI8yPI=; h=From:To:Cc:Subject:In-Reply-To:Date:Message-ID:MIME-Version: Content-Type; b=Ul06XU8dOH3fgoffS13jfnJvydLQxouuVmUKm4N2KY/QDRfPkXLgM+jsrlPn9nz+7NPLEugNp+Xb7bmPmXwT0OYPzxiWvKn4WCxazkrS6WF3dZcXk8ypAt6ONT3bpClXW8pG+89CUnXEDwh81rFqFbrW44y9SkcAApoGPSZBHx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0iFBo3BG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sXzw1Q4G; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713283977; 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: in-reply-to:in-reply-to; bh=+3n9DTHYm/EkmX9oZRWIc3/YuhdZcuLGGOtL2I/84FI=; b=0iFBo3BGImp0EbEh+nKQ0hZwmEzgsyLQggdpAI88keBczuN8lWPxML46rK5SkUKoXswQI2 H2LMslVvXmlbQcJzgB+93nkoIvDtKeEt0D/jmk3iswNZOdf1ZO7eFWl4NWqMgNZU8ZlszX HNXQALx/vgUi11NaT1eVOMOlDg+NA1G3/JNigSDFAZg/vEgnzRWbTR8drjzaGS3JLDyLZ3 dSPDjcCnAlLwIuJoYH6CopqvONTMcXqIitoVKTD1mt7cii/8HNO1x+AoKhzMZhHeBdc4lz SgLSTiamSwWfrZHm1Ti4pn55wnVS9lzxiHVj46355TOYtXQWc+GWPOmVMXc9Tw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713283977; 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: in-reply-to:in-reply-to; bh=+3n9DTHYm/EkmX9oZRWIc3/YuhdZcuLGGOtL2I/84FI=; b=sXzw1Q4G005Y3UbrKZtyQwlt3IozTAXkK9B7OcRbTlYDD6VMAqRwn69n9yp/tw/dqI2oK5 pIl3DnenX1i+aKAw== To: Thomas Gleixner , LKML Cc: Frederic Weisbecker , John Stultz , Peter Zijlstra , Ingo Molnar , Stephen Boyd , Eric Biederman , Oleg Nesterov Subject: Re: [patch V2 20/50] posix-timers: Consolidate timer setup In-Reply-To: <20240410165552.194398633@linutronix.de> Date: Tue, 16 Apr 2024 18:12:56 +0200 Message-ID: <87le5djng7.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Thomas Gleixner writes: > hrtimer based and CPU timers have their own way to install the new interval > and to reset overrun and signal handling related data. > > Create a helper function and do the same operation for all variants. > > This also makes the handling of the interval consistent. It's only stored > when the timer is actually armed, i.e. timer->it_value != 0. Before that it > was stored unconditionally for posix CPU timers and conditionally for the > other posix timers. Shouldn't we do this similar to the gettime() and set it_interval unconditionally? Thanks, Anna-Maria