Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2818268rdb; Tue, 12 Sep 2023 13:04:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVFXLOya0+FtovzOw5g5X1cRp+ERSgc2NM3Sp0hG3MIO1JEmYYXoKzx5/0XzcYZrD3mXHK X-Received: by 2002:a05:6a00:84a:b0:68c:a81:4368 with SMTP id q10-20020a056a00084a00b0068c0a814368mr955825pfk.6.1694549099184; Tue, 12 Sep 2023 13:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694549099; cv=none; d=google.com; s=arc-20160816; b=1D1kZqB9RmVbtQ/LxX9GTnhoBGGuShXEIg8pQdsdkihC1Q/OE+pLUyuqx8WAUP5Kwt KMWY3C1BGZzYj991ccTYbBc4j5iWQwg64KudkvkyI0Z4e3zGywktYPMUJt0EYnZapI9w nw4YzB/TyB+VTbFR9Eu4Pah9SEzwPJK+/LwVRsz48vfezePCkhMpfFK2eKAMzqeIdaFP CHKbHyFoC8xn+Zkw4mcasVO556fqXSx51ZRT8zoStOCgpjuHkVeZpCT3YPpbAWldY3nv HTrPfeC566s3e0jlXuV55FudCVxG+gNlhnRrV4A7/ndK2VNr7trZrhnRkoz4G5IqfCK/ C0/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=g/nR9JmjEhE/8Ce9fpNW1m2ZinVkMo73k+R7/ga65xo=; fh=wk0hDkevm1SUd9scSUSvzluILvKRbVermvKC7OIlKkQ=; b=ltA0cvRy3GtdE/T6fjL6Ne+lbXL+MK+21BMe3toiLhx3gxpY7gS8S22cPbbZ6q1cyx dRBTPRN68IOParVI3iXnbA/KzMM5UhjisCjOZGklycI4NSf+TtYTaft8BTFYFPk9aEch 2Kk98+oHK1dBQ5o/w6NjLUtZ4+sLyGBgvH+23upSS91kgvhHwyQ8Jqtlnw5Yq3m4UUEB 8c4rEVnOGI/iHaYAqPLE7ugkPKymMorUCwQZ14FDrq9rN0XVlFN1RisF5KKG8l+VbKgD Tfn6sicirpKrWrhQ3fRgn0YmsI+x2nQAwYTmaOQzhNz1fMIM+3OGLH8U8tuGcyizYA+e 2Nmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oZ4aEzRP; dkim=neutral (no key) header.i=@linutronix.de header.b=g4CYkofU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ci12-20020a056a0028cc00b0068fa7f9b04bsi6038227pfb.49.2023.09.12.13.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oZ4aEzRP; dkim=neutral (no key) header.i=@linutronix.de header.b=g4CYkofU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3EC2281F9664; Tue, 12 Sep 2023 08:33:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236468AbjILPc4 (ORCPT + 99 others); Tue, 12 Sep 2023 11:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236451AbjILPct (ORCPT ); Tue, 12 Sep 2023 11:32:49 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A25C1996 for ; Tue, 12 Sep 2023 08:32:24 -0700 (PDT) Date: Tue, 12 Sep 2023 17:32:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1694532742; 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=g/nR9JmjEhE/8Ce9fpNW1m2ZinVkMo73k+R7/ga65xo=; b=oZ4aEzRPdE5MOaJWRS23r2XVhOtk4Z2Z4kzBt+mxN7NFwiPUMd9Ngxx+RTlSMjy11gxCgV s9WHrJQT24mNDHhw8qcGCtkNondyVmWrrP/y4IJTARlXmG3zrC/IXytlJg1hepn5qXjsfk qEjdzdsh1Et/1YYR1JyN/NRHiwvmcrA5RMAX8wb+faCChLB3vSvNwkW0YWdoxoVyzq/GsK b9gW0BlharMSjbkigMay6k3D+uSL5joc3HEqDqcjPAgCz+40BnwrMDdC/BPfizx6i+JQLK pTLrhlAFq8risPcXjr8TpHksm2/J1KD4H5U+zJQpGJlX6bqdN/a3OkQ5msrQ7Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1694532742; 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=g/nR9JmjEhE/8Ce9fpNW1m2ZinVkMo73k+R7/ga65xo=; b=g4CYkofUTPZYcoi6ZbZBbfnG7+CFbflFKJTZP84RO+4aW6zomtzPP87GoTtdM4xDvPIh84 C/ZYbioPogTSyFAg== From: Sebastian Andrzej Siewior To: Peter Zijlstra Cc: mingo@kernel.org, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, corbet@lwn.net, qyousef@layalina.io, chris.hyser@oracle.com, patrick.bellasi@matbug.net, pjt@google.com, pavel@ucw.cz, qperret@google.com, tim.c.chen@linux.intel.com, joshdon@google.com, timj@gnu.org, kprateek.nayak@amd.com, yu.c.chen@intel.com, youssefesmat@chromium.org, joel@joelfernandes.org, efault@gmx.de, tglx@linutronix.de Subject: Re: [PATCH 07/15] sched/smp: Use lag to simplify cross-runqueue placement Message-ID: <20230912153221.lSL8YgJJ@linutronix.de> References: <20230531115839.089944915@infradead.org> <20230531124604.068911180@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230531124604.068911180@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 08:33:01 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On 2023-05-31 13:58:46 [+0200], Peter Zijlstra wrote: > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -12492,22 +12440,9 @@ static void task_fork_fair(struct task_s > =20 > cfs_rq =3D task_cfs_rq(current); > curr =3D cfs_rq->curr; > - if (curr) { > + if (curr) > update_curr(cfs_rq); > - se->vruntime =3D curr->vruntime; > - } > place_entity(cfs_rq, se, 1); > - > - if (sysctl_sched_child_runs_first && curr && entity_before(curr, se)) { Since the removal of sysctl_sched_child_runs_first there is no user of this anymore. There is still the sysctl file sched_child_runs_first with no functionality. Is this intended or should it be removed? =E2=80=A6 > rq_unlock(rq, &rf); > } Sebastian