Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1015343pxj; Sat, 15 May 2021 00:55:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg4RvPSUudzHIttGJdCIE2ujJucY/w8oxXNTZZNU/HoPni3suFaC22kgyA8QyuFaWap8oA X-Received: by 2002:a05:6402:c7:: with SMTP id i7mr61610276edu.194.1621065331686; Sat, 15 May 2021 00:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621065331; cv=none; d=google.com; s=arc-20160816; b=WkS1/K3Vfifjwj21tPPS8vUBWW7gQ12f5Xjd5NH4bV+N9WqKrKVLdXlRDqx6t0bk0d BirJHsYtOOis5YX4NqH4/Xm7sJl+JVyGGb55x2SeqcdvczNxx8xr2H5d1HJwHhHimQU9 k5VWs4WIysHuxI1jpnagZ+BM3RR5NuEx7FLo6puLBCzat+kKFIxku05v6ek1u1lSRYx2 rG49rhn6uRinRfCPZnhhjlGQosKZ+6TQwW9LqpTIRWMieAzMJS5vrCIAHu7tCV0l5YUD +g5UyC3uKtlxH8kTrwxKKCSRH3H7obW+AgeyfQ7QgDsDMHpAkZcpleRz5zQF2m+wbT6L OlMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=BUCRh6+JO6hwPoznRg0DikeObEjzSgPqiFp6VBNC0BA=; b=Tuzzd0lJIxftRKseZ67xBMxYQjYJoSrE3u2ME8KXRqI2wilbTd7cf8tBPxrRCqOA88 X1mp6RLxvgpzAFqQ/grHradbypoQTfr4KHPwER0g4bJbDzFscc+F6H3OV8pfA0B1IOfz mbqrJpvheaKAiEqYhorrYFEkz1NF3uHg1fBcIevstdUFJMfsC2eFRlVeoBCDPftAWSpQ 9+2W9F4d8polNY+mrixQLiC2Ev0zWJAj/EpMwu2oNi0MHolxmBNQnkiHi4bqmVKGNznu XPTVeANZZ/p1LkbUevfDUXOSCU3+ftXKHuEk7H2Drh1kksBpwi4GBfzRnMzih5x7MZLo LDeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=upcs4dh8; dkim=neutral (no key) header.i=@linutronix.de header.b=hrOKMEb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si9897435eje.640.2021.05.15.00.55.08; Sat, 15 May 2021 00:55:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=upcs4dh8; dkim=neutral (no key) header.i=@linutronix.de header.b=hrOKMEb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231684AbhENTaq (ORCPT + 99 others); Fri, 14 May 2021 15:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbhENTao (ORCPT ); Fri, 14 May 2021 15:30:44 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71BFC061574 for ; Fri, 14 May 2021 12:29:30 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1621020567; 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:references:references; bh=BUCRh6+JO6hwPoznRg0DikeObEjzSgPqiFp6VBNC0BA=; b=upcs4dh8Cfn0LxB0CTZjFaafR09fumaQIKcDs80pPzNcvy9sRYs+QeqSJjYbaIP1VclrR5 ao17N6mth3Saiua0gww57C/243IWyhYoH4/NYRI5vWIc86WFwSemNuQjSbZmuRWI47g5a2 DSLyAWHQwdl7C+vNAVRGABr4Nuf/W82ZqlxroJqxI/afArziPy++nUtR+8sulJRrkjEHUp 0vI8xGBE0RmLGDxjx0f3xd4xinATbA2ktpweKOSqrjsDi5hO4XEiMOumk8OxGnZqsJ8JI9 piDaNku04g7njiGaDAkjX0H8sI5Zh5Rit/nem/UXW1MPeiq7X/QJQnSRKIsZxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1621020567; 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:references:references; bh=BUCRh6+JO6hwPoznRg0DikeObEjzSgPqiFp6VBNC0BA=; b=hrOKMEb1Sx2wT7jVWxmi4G8D8GWa3B/SNyLUYI++NCjn36kmbiAwWI2E1jYa3B0646MvkE KtgYa6Iv/F/itEDQ== To: Peter Zijlstra Cc: Lorenzo Colitti , Greg KH , Maciej =?utf-8?Q?=C5=BBenczykowski?= , Ingo Molnar , Anna-Maria Behnsen , lkml , mikael.beckius@windriver.com, Maciej =?utf-8?Q?=C5=BBenczykowski?= , Will Deacon Subject: Re: [PATCH] hrtimer: Avoid double reprogramming in __hrtimer_start_range_ns() In-Reply-To: References: <87r1jbv6jc.ffs@nanos.tec.linutronix.de> <87eef5qbrx.ffs@nanos.tec.linutronix.de> <87v989topu.ffs@nanos.tec.linutronix.de> Date: Fri, 14 May 2021 21:29:27 +0200 Message-ID: <875yzl3yi0.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26 2021 at 14:25, Peter Zijlstra wrote: > On Mon, Apr 26, 2021 at 11:40:46AM +0200, Peter Zijlstra wrote: >> There is an unfortunate amount of duplication between >> hrtimer_force_reprogram() and hrtimer_reprogram(). The obvious cleanups >> don't work however :/ Still, does that in_hrtirq optimization make sense >> to have in force_reprogram ? No. It need's to be in hrtimer_programm().