Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2354419pxp; Mon, 21 Mar 2022 17:50:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5LJZKoO3qmcEM4aUAyupTfiF9PFaH4EenPjapKXBN9MxypWbDldr6UpL6JuY6ngHSkOJE X-Received: by 2002:a63:fa0d:0:b0:372:d581:e84 with SMTP id y13-20020a63fa0d000000b00372d5810e84mr19603094pgh.414.1647910250838; Mon, 21 Mar 2022 17:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647910250; cv=none; d=google.com; s=arc-20160816; b=y+BF5xeFZn6+3VToKUGqO+xqbzNMEB9RUetnPaQEt8bcCjym5K2K60uhXhfDQh1Hdq HVAujVaZi3Zk8XyIwAQm4wWyvTBrjnTb6hr3KlTatAYEIXISkB9aGfQW8HUuJIUGftPk wiDFnULc2zhLwGdUt5QMKtbzT4+t/G1c3inEl/pW/IsQbR+MLaDsWircDXveUv8s/Bav hy9so4CrNkK4dDkd+3Yr0sFRB2JozC/tJKMyc7b7qZ5HNYezTV38tZTK5K422ErEMwgq c/rHE1hjHVuJNju8lSg9Kh9KTjpK2jeqbNF1lEPISt3RhYG398FtzE6oLdVZ9fZ9UMBT pECA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=Aj+rectnHb70J6WszFwSFQjb73eanKJK/1jmSsKN6ms=; b=ZEEMNiJFaz07YWLj56F+MOH/XJPYNziblvAYhHjdaNw1hzzZK8ARki72AwDppkyGCA bIyS+20BEnSrPFpzq+g6hAD6WLOjlP3oWTbU7iKmmHf6ex4/l3lXcrbHGInJ0mAPgAvW FUAKUsQBjl35RHdJWoOsh62jwUKuZwz2/7+EH7CK3tt6HuSPG8gwIypm3iIkGiCXJy22 YV/TTFX2fr5RIoDgPrad4OFpyQrZbd5u7/dTnT6mEApOAXNCoOS/wAc/oeziPnuVxtMT Q6SzQKIduLFXI4LB7U7m4KP9GylbEAUH5WQjda4tNOak1vvi70knGEIUsXk1zufgOecA DwGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TSUB2ndS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e2-20020a170902d38200b00153b2d165b0si10723627pld.440.2022.03.21.17.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 17:50:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TSUB2ndS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0067CA996A; Mon, 21 Mar 2022 17:23:41 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233849AbiCVAYy (ORCPT + 99 others); Mon, 21 Mar 2022 20:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233878AbiCVAYv (ORCPT ); Mon, 21 Mar 2022 20:24:51 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEDD21788DF for ; Mon, 21 Mar 2022 17:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647908589; x=1679444589; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=zDlH0ZClt/l8kXY2KRvl+K26irE1q1spi3F8nlx8XRg=; b=TSUB2ndSr4VshqPAjySci3mdIDJuIvzW9JrLn4h0JTiZiK3uXyeyqLIL azmYuGTWTXOVR3NDI5y3c9+IQy7tZZgNJ2Md8agH9E4ac0MwFQw5CZGRr I5a/zhjC3Wh16KrPCK+u55FVW5L2Xzn1hNqnqCrtIjjKyO44FDWTiqzAJ wGTEWVQt4Hk26PWp/wgJAgjUPqrPmtTaI0nQLQcqqwwJw/jskTQ0pmp/L +qCqZfBNZaWg3vme/N64Aqvp0KfTs/QQN+H5Xw06TD0whDK/EOadmLRgo mZ7KpY5Y5nsGSLDqIRzeyyWL4Fe1Nbed6YVPvHW4wPZBSucKn27xmqbDw A==; X-IronPort-AV: E=McAfee;i="6200,9189,10293"; a="344111434" X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="344111434" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:22:33 -0700 X-IronPort-AV: E=Sophos;i="5.90,200,1643702400"; d="scan'208";a="500364874" Received: from schen9-mobl.amr.corp.intel.com ([10.212.227.186]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2022 17:22:32 -0700 Message-ID: Subject: Re: [PATCH 2/6] sched/core: Propagate parent task's latency requirements to the child task From: Tim Chen To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, parth@linux.ibm.com Cc: qais.yousef@arm.com, chris.hyser@oracle.com, pkondeti@codeaurora.org, valentin.schneider@arm.com, patrick.bellasi@matbug.net, David.Laight@aculab.com, pjt@google.com, pavel@ucw.cz, tj@kernel.org, dhaval.giani@oracle.com, qperret@google.com Date: Mon, 21 Mar 2022 17:22:32 -0700 In-Reply-To: <20220311161406.23497-3-vincent.guittot@linaro.org> References: <20220311161406.23497-1-vincent.guittot@linaro.org> <20220311161406.23497-3-vincent.guittot@linaro.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Fri, 2022-03-11 at 17:14 +0100, Vincent Guittot wrote: > > Signed-off-by: Vincent Guittot > --- > init/init_task.c | 1 + > kernel/sched/core.c | 4 ++++ > 2 files changed, 5 insertions(+) > > diff --git a/init/init_task.c b/init/init_task.c > index 73cc8f03511a..2afa249c253b 100644 > --- a/init/init_task.c > +++ b/init/init_task.c > @@ -78,6 +78,7 @@ struct task_struct init_task > .prio = MAX_PRIO - 20, > .static_prio = MAX_PRIO - 20, > .normal_prio = MAX_PRIO - 20, > + .latency_nice = 0, Probably better to use non hardcoded number here .latency_nice = DEFAULT_LATENCY_NICE; > .policy = SCHED_NORMAL, > .cpus_ptr = &init_task.cpus_mask, > .user_cpus_ptr = NULL, > Tim