Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2851113rwe; Mon, 29 Aug 2022 01:02:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR53hbXLYnYz7XutPTQtKwq9G3ZCto0p+344yLoF/wEIjfYvZ1TnwqPbwOrRHo0ymuULJsQJ X-Received: by 2002:a17:906:4d8c:b0:741:6194:e5b6 with SMTP id s12-20020a1709064d8c00b007416194e5b6mr4801492eju.252.1661760148584; Mon, 29 Aug 2022 01:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661760148; cv=none; d=google.com; s=arc-20160816; b=czCuqVflgmewXzrdnzA0qItd7YflnceYhNvu9h7NUKJhwi+aYTqX1EJUlApbn5GO1k i8a1j6BSkbpnBvrjvsk4Op0Y77U7iVxiCF/QSw1wlG1d3h9CbHY+la4EcoXhdH4e3GtQ /dQgOSbBP6fF7KnaFH3FRODLi0xsVJ27k9Z4uYZgVBXQOo9INL2shETH58I9EK7CLw0J GX8GlR2ERmmPn+siUib+iXtYvS596cFq7zVPC738djXlji8hH7MP0cyoOHkS5m1Ad6Jx c/lElZ/DWYKjA8P32pAceRmj9gY7bdI9KjPOdCfmwTPoEqNHdp1MZffb9AUWjt9OIz06 La5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=tcP+F2e+OAUzwbCnQmw8P2T4Qvhjr6zsaFRIn6mVHYE=; b=HgSr2b0Khd3HP+4p4oQxeQW+2So5nM8PKELDRKyH6qagZG6Ev6j8pj/rBgfd05UwSx uzUfjHBBdboA+4rF7bnEcPtMReoTMb/GPNrLgAn3mfV1yPA01noPIN1IJlnQ7wdE+iiX bAIPzK4mz8BynuJE0sTzOGmMeUo2A5FU0VtY/t7TYWJCL0+/VMOWgOT7ICQcYOwL/v+P 3sYeu51DJE8OnembBhYhcjtK5gb7NFR3s/Gp8tgzQcb7wG0n7emFJLziWW1JGGk1gnG/ QtDQef9LNvjp9nWq4sjU/YMNVUEneIz9sF/qeOGHeWrx9hltiVBoyaj+jIHLs/v2IZhu T+kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LI6eH5rv; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a05640211c900b004486824877fsi2941910edw.355.2022.08.29.01.02.00; Mon, 29 Aug 2022 01:02:28 -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=@redhat.com header.s=mimecast20190719 header.b=LI6eH5rv; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbiH2Hfj (ORCPT + 99 others); Mon, 29 Aug 2022 03:35:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbiH2Hfb (ORCPT ); Mon, 29 Aug 2022 03:35:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D33311826 for ; Mon, 29 Aug 2022 00:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661758529; 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=tcP+F2e+OAUzwbCnQmw8P2T4Qvhjr6zsaFRIn6mVHYE=; b=LI6eH5rvEBEA7szzyPQaUxFJQ4yKE6W4cWPbv4DwaO19eBFjb0MxlpZqgNlfQ89ic7tx2T G0ziHx4LLob+oYD9cfhzDKUbAsTrPhwo8fGiyKp7oQznHsvpmdjVPrIi6D0AxPDVScU45X OamQCOOmIhrYA1x/kZ0CKY3v/jP0tSE= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-483-30_UKTKtN5iQ10MxOKCOhw-1; Mon, 29 Aug 2022 03:35:27 -0400 X-MC-Unique: 30_UKTKtN5iQ10MxOKCOhw-1 Received: by mail-ej1-f71.google.com with SMTP id qk37-20020a1709077fa500b00730c2d975a0so1901399ejc.13 for ; Mon, 29 Aug 2022 00:35:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=tcP+F2e+OAUzwbCnQmw8P2T4Qvhjr6zsaFRIn6mVHYE=; b=Y07vGoWkXXwsSI/rniozlbDMf6ggrldA6C9HZbBBYdbVfX1tpdXXIB8o79DkBKrkJs pxg8/tZpLd+AWOw6kclFNkImnsVlfsXlKInI3WtpwCvkimdDSiU9B4NMPG/RbL4PJpQI M0QJy/VW5RvAPYF5vd1hE95PQOAASh3JNsT6SaX1fiIyZBwfHVST7BCxAZUFz+rAZ40D XnVuHdAkFslzBK01wD45VrZJ5EQBhpwuoFzGmZqxquIGcdSnKk2gMoHU9VqMOtZZ+A7M lWMk7XeYS8eqW9Xa5tqyH2h8qW/fz9Fcoa32TAMGBTNAaVr5bAC9YraH1JU3znXY1Rew KHIA== X-Gm-Message-State: ACgBeo0LbXEZiv1tfWRQIP6uAW09CfSiDk0gUrGj7XoVnu6JIsvDprt4 I1LTpeW+Yc9NlxI4D5fR9+u5f/BRSghoT/pcCMElBshu1ONc0NyvvJb2K+U4iq/4XyFxbBkjCB2 A/sM02r70IO9ypAIuRud+1hBg X-Received: by 2002:a05:6402:530d:b0:446:e22:cca2 with SMTP id eo13-20020a056402530d00b004460e22cca2mr15430928edb.237.1661758526476; Mon, 29 Aug 2022 00:35:26 -0700 (PDT) X-Received: by 2002:a05:6402:530d:b0:446:e22:cca2 with SMTP id eo13-20020a056402530d00b004460e22cca2mr15430910edb.237.1661758526216; Mon, 29 Aug 2022 00:35:26 -0700 (PDT) Received: from [192.168.0.198] (host-87-8-60-205.retail.telecomitalia.it. [87.8.60.205]) by smtp.gmail.com with ESMTPSA id em5-20020a056402364500b00447e5983478sm5235257edb.76.2022.08.29.00.35.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Aug 2022 00:35:25 -0700 (PDT) Message-ID: Date: Mon, 29 Aug 2022 09:35:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH -next v2] sched/deadline: Add dl_task_is_earliest_deadline helper Content-Language: en-US To: Shang XiaoJing References: <20220826083453.698-1-shangxiaojing@huawei.com> Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, linux-kernel@vger.kernel.org From: Daniel Bristot de Oliveira In-Reply-To: <20220826083453.698-1-shangxiaojing@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,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 8/26/22 10:34, Shang XiaoJing wrote: > Wrap repeated code in helper function dl_task_is_earliest_deadline, which > return true if there is no deadline task on the rq at all, or task's > deadline earlier than the whole rq. > > Signed-off-by: Shang XiaoJing Reviewed-by: Daniel Bristot de Oliveira -- Daniel