Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp416843iol; Thu, 9 Jun 2022 06:29:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV9PXVr6kSlVlLpq1s0j8MaDV+DWh/vYhwYDpmNvYc9QXw2DF/AkrAFvwnRAnyJPmORD2W X-Received: by 2002:a17:90b:1298:b0:1e3:49cb:85be with SMTP id fw24-20020a17090b129800b001e349cb85bemr3514105pjb.159.1654781366911; Thu, 09 Jun 2022 06:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654781366; cv=none; d=google.com; s=arc-20160816; b=VFM8Zgl4RZOIfmqI/UglTC+mpcpSt+fIH57SQEfiKYw5CIMNUf4c1ops3uL2TUt6FV 7Zf3A2YjwzD/7EjPo+xrkj77RV0yvXpm74u7fa4utikiFDxJCP13dOrxZky8Wg7oRfnd Ldly1XSLcIZTP93oLBpt9xZqn/2CFnBOSjT9nLx459OyHIQdt2Y/t+Z6epVX6weGUYNO vJGzyHKfawuFaiHPZeX5+UP4TadFAIxAIp2Z7tnCC1V/khZ+rlcEolt5uezpiU8hYWEv QUMTx9+N6w6W/tON0MV+TH2fdBOaO61ZS9NtNkCjh//+SKYqGj9LM66L2kjiI+a0JemJ uKBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ac0XSm6qLT5ejHpXkWVAkUQcaAKF9sF1khNJzx5SMGc=; b=AHqVfmtBWgeJTKd93sGYTQCi1fIHCKFIjzXQ8b6vuDJdBGcFAg0dgBCdSsnRPE3r6T q9N/SZoxZ7SSK7vDKDcQKLDm6Cely+pItXlYMs/rI+Kao+2qcm2dcGvG3Mzn8IK3nVXa lqJsvoequ5D6PmUypAHeGe07TS8RSE5LR4/3ITvAVvIG73eBvx/l51rQrv0+5nw/qn+O Ri+JWvxHSrETd52WuAYqDqWxUR1jcDbxN7KfG7PokexH+xVSozoT+HGYh65F4RBjX8fq IKaSk+T6U3yt+1j/ulVae6Gq9v5k/jsGlrA6LRDjxS5aNzITSQBCVIWEYZGtkFSv+awH stJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IBWxD9g+; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a170902eb8100b00161bc840c77si31248362plg.548.2022.06.09.06.29.10; Thu, 09 Jun 2022 06:29:26 -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=@gmail.com header.s=20210112 header.b=IBWxD9g+; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343780AbiFINXr (ORCPT + 99 others); Thu, 9 Jun 2022 09:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343774AbiFINXk (ORCPT ); Thu, 9 Jun 2022 09:23:40 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D84726ACD for ; Thu, 9 Jun 2022 06:23:38 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id u8so16521270qvj.2 for ; Thu, 09 Jun 2022 06:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ac0XSm6qLT5ejHpXkWVAkUQcaAKF9sF1khNJzx5SMGc=; b=IBWxD9g+sOOqJuU9+jsbN9tnjWE8Rx1lsWEFswdhXxOjH8KJP11tnU4skwTHAJoEB0 Uq5x5aHSnHP+YK2ENYnbUtixhxo8GuHvrL3YshFeokIfn/HFuzsQeIAQi7pxhcssa3QR LnAs2/NnpoS/96sFloYm1NK9XRjJygrt6v5UHJCzGcPScpVV82ZRpizWgAdboQRWWzPK epC8F4+clohxoO9fzisXGinlp2qkuO9KGNBd8M7823ShukpkBZWZ8TKnQfJdwBM9f1db +a7V5EFCZbB+srx+xy6XCRQm0AKcKTvY8ZQC9ocXRGPoC4oxGk2MDWAohKaPC96DczKh nPHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ac0XSm6qLT5ejHpXkWVAkUQcaAKF9sF1khNJzx5SMGc=; b=CjlmueIi9YhkP6yWOh5w3KXpS1Rs5WWgwQXbJmSF/K7At/GX/r+k881Z5awxKlT8al dqAXOQNfNhFixORFztGAA/O1j6dYFVP5vbQN1NR3tX28KVMRRpt1etZzbN5LgzfnfVpH 3W8Tpeh/tn9PDsc7DUkSyY7FR+mk2cNvGDNTmbfnbnnN2fDRHIEdAcaXhFqMrKAb752M yhDvHKlz2WcLpf5ZseJUJeHhBL+gM5QAWERswna650lWJWJ5WUWTEDWqi5Veb0rJNMby d01xrjgWFNAPuaYBH2I7S5YA9iwMlbrwIYd8+oIo3+r5zP++XZxqWFN2a1nshs0YUaTC 6XRw== X-Gm-Message-State: AOAM530lT0qZEe1okdEQrhlDZ+NEH38ePFgzudut8MVq5xsXEYq/Yfig U5fD5jBze+x/ir1rwx9dzymtPucnl49uB1R6dAc= X-Received: by 2002:ad4:5ba8:0:b0:46b:a8d7:bd61 with SMTP id 8-20020ad45ba8000000b0046ba8d7bd61mr13976579qvq.70.1654781017674; Thu, 09 Jun 2022 06:23:37 -0700 (PDT) MIME-Version: 1.0 References: <20220606122612.2580930-1-foxhoundsk.tw@gmail.com> In-Reply-To: From: Huichun Feng Date: Thu, 9 Jun 2022 21:23:26 +0800 Message-ID: Subject: Re: [PATCH] sched/fair: avoid redundant hrtimer check To: Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , "open list:SCHEDULER" , Ching-Chun Huang , Chin-En Lin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Peter Zijlstra =E6=96=BC 2022=E5=B9=B46=E6=9C=889=E6= =97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=888:29=E5=AF=AB=E9=81=93=EF=BC=9A > > On Mon, Jun 06, 2022 at 08:26:12PM +0800, Huichun Feng wrote: > > The check is required iff HRTICK is enabled and DOUBLE_TICK is disabled= , > > avoid the redundant check by adding corresponding sched_feat() . > > How about: 'don't do that then'? Looks good! Should I send a v2 for this? Or could you help amend it directly? Thank you! Huichun