Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4439730ioa; Wed, 27 Apr 2022 04:03:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWgBXib8rioKXinsT4uIog3ewpiyNsNH1c/umkeJs/WsEZ367BBjTUGRu0bCONfBDuEi0Z X-Received: by 2002:a17:902:a981:b0:156:52b2:40d6 with SMTP id bh1-20020a170902a98100b0015652b240d6mr28333132plb.34.1651057395487; Wed, 27 Apr 2022 04:03:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651057395; cv=none; d=google.com; s=arc-20160816; b=ouT7sXZq0sDReEtBl6HFzpLNZRQmYI823jKGFpP6hKOpNcZq9XavCVCMnjI4BUfCLS MB6w05yI5UW7SNNECCllKdoxpNYfK5BuugRDYUmaQw8DD9I+5R+sjxoxZ2j4FPL1ZhEn 1ADbiISype/8NLLtfRBsC7tjCh4p/OXPVyt29gGSNcnySKfSSKMb2YkMh54r6S7WKnQE 2jYZ4gB7MDiNpKaFFrmwdGeTYrEW1+0+4mmlNeBi47VqkqDUfe9yeemwZdKRMXex5nG3 ouLH/WkennmJ6VdUFr5RpGvphtVRs58c3Z87K2R7DIkT//6K2BdJViXsvN7YTRHh11Lc 1sEg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SY1krE1XlZHmCzWuFUzccc7xOTTIQag7kMHSwWGpH34=; b=ahqREF6siSAcDGp8m+cJgJN1cvES3yzbjD/8t9nPILfBn1hrRAdaYopyYIM68jmqKk sCMm9nYcgnI8B6iqJPIIEqD85dXLvSyfRsqTe/Xzla0AqqXp51/VbeT2u7PU6+8nvEos rL/BzypaIWlDFDm++5xpnb9kwINyabwD3+gcTuUz2MVe2SVT7kkC/vxVO9pvT+Xl1dxM kVsnl6DHSQIwH6KDolB0oH6vjcLEAeS140dnZEqpcf+/6WZmvFdNx1pq3qjyK5KxphYt K2wQcKc3Xhf2nYs4Ki4w+07Jw4hoobGNsr9jRRWYc1b3QGD6kfmdY0Pp64vZOR6L8MBa n87A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=IZ3sD0mD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v12-20020a65460c000000b0039d68b7a689si1238087pgq.20.2022.04.27.04.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:03:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=IZ3sD0mD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7E144468640; Wed, 27 Apr 2022 03:13:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359246AbiD0IEL (ORCPT + 99 others); Wed, 27 Apr 2022 04:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359253AbiD0IDu (ORCPT ); Wed, 27 Apr 2022 04:03:50 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C52281AF2B for ; Wed, 27 Apr 2022 01:00:36 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id iq2-20020a17090afb4200b001d93cf33ae9so4320147pjb.5 for ; Wed, 27 Apr 2022 01:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SY1krE1XlZHmCzWuFUzccc7xOTTIQag7kMHSwWGpH34=; b=IZ3sD0mDwQ1NFBRa4FJJlFvzQXUHgL7GwX/o1UKD8fuTVy3E+i9QMSfIQJb43U40mC c/C7DDr/WJRRu5nymtH6DT1jDDUssM2U96p7iux/MIibxfEPD41OHPsWB1oXl8s/tLJE By2Jq/NWrqHeGrOv9a1EJVnvOEsBqVRtjq5SHW/g4e2tSKUtTDE6uwSOW8tIfnyV6H3t eQOTyAZ26dpumf5rdJb0hLHBxk4uvW8KevjfvieMih9gRlJqvsotscV3QARnBCjWQHsI AYDaqMw826d7bAhk5NBZZl+L1NxTXP0QirKNa6fsHbZUUoZBB1fsZEUxMjvjZkvBQuvf cSqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SY1krE1XlZHmCzWuFUzccc7xOTTIQag7kMHSwWGpH34=; b=TX8csoWF5GcJYR265bwExePwO3iKsvaEy0zzF5GQ9plEAXyXdj4TF7aOGzuU7353VO YbuJ5SvdxsY+B8TTixbBozPjLPby1GTzFdrrukINiQcDgfW3JXdCag0qoKTuW8YUzO/8 qD/8YRxxg5PMV0wMGbmpgVrXi93wgfhCZ//kFk6Qm3Hgp3A0jeJpG0lgH6JgcJlufC3O lzIWC5I7QtENygkQJ2Za3huYJ82t2+qQa9TEn50EUnRO6yMLUWhlv63mldbRP6sds0Rv XBb9lmF0g+b4aUYiVDEHfWNNS63gyDlVEUkbocoWRaxthIvEOPZS1tL0aR3Z7HdUZmwW 5qww== X-Gm-Message-State: AOAM533RzfhPjAU0ZdIBFKgq7I8uwi18zXPq7xKiAxKn1GNMgyJIBYZA V+sjTi8pnu0TxKFbIoLJM0LsuA== X-Received: by 2002:a17:90a:8d82:b0:1d8:a5a9:5489 with SMTP id d2-20020a17090a8d8200b001d8a5a95489mr27752692pjo.102.1651046436098; Wed, 27 Apr 2022 01:00:36 -0700 (PDT) Received: from localhost.localdomain ([240e:390:e6b:6b80:9d6d:7735:8291:b65d]) by smtp.gmail.com with ESMTPSA id u2-20020a62d442000000b0050d404f837fsm9543380pfl.156.2022.04.27.01.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 01:00:35 -0700 (PDT) From: Hao Jia To: 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, bristot@redhat.com Cc: linux-kernel@vger.kernel.org, Hao Jia Subject: [PATCH v3 2/2] sched/deadline: Remove superfluous rq clock update in push_dl_task() Date: Wed, 27 Apr 2022 16:00:14 +0800 Message-Id: <20220427080014.18483-3-jiahao.os@bytedance.com> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220427080014.18483-1-jiahao.os@bytedance.com> References: <20220427080014.18483-1-jiahao.os@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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 The change to call update_rq_clock() before activate_task() commit 840d719604b0 ("sched/deadline: Update rq_clock of later_rq when pushing a task") is no longer needed since commit f4904815f97a ("sched/deadline: Fix double accounting of rq/running bw in push & pull") removed the add_running_bw() before the activate_task(). So we remove some comments that are no longer needed and update rq clock in activate_task(). Signed-off-by: Hao Jia Reviewed-by: Dietmar Eggemann --- kernel/sched/deadline.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index a562bb271031..83636a7fcd32 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -2320,13 +2320,7 @@ static int push_dl_task(struct rq *rq) deactivate_task(rq, next_task, 0); set_task_cpu(next_task, later_rq->cpu); - - /* - * Update the later_rq clock here, because the clock is used - * by the cpufreq_update_util() inside __add_running_bw(). - */ - update_rq_clock(later_rq); - activate_task(later_rq, next_task, ENQUEUE_NOCLOCK); + activate_task(later_rq, next_task, 0); ret = 1; resched_curr(later_rq); -- 2.32.0