Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp684921rwd; Mon, 12 Jun 2023 21:34:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hCj3dBC8eGdTvnl0qJf/QTKxR/6p6rM9ozjo9QjEXOUWr/WZwcLm9a3e15C9yFYnrrG0C X-Received: by 2002:aa7:cd95:0:b0:514:a0a7:7e7f with SMTP id x21-20020aa7cd95000000b00514a0a77e7fmr6467374edv.2.1686630882727; Mon, 12 Jun 2023 21:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686630882; cv=none; d=google.com; s=arc-20160816; b=IeOiJZ+YgHfLD+UIjWlBeSfjnS5fJ79PXV7E/4JSCZUlFvneiR0mDeW/11mLfBEMil FDOi9nIusaCCIiZKOWGkQg39pTP6jTwEws+YwA72uctCcIAg9lbT0Y1PqiPruzGfIs9B MEH7lT8xr/xBWW7w7XryM0mRs2yF5YmUz+nsChLo4fSKEaYWAEtRIMcIUpQa5GYBfyZM Cg7BAco3R5HRyuJMiFXUDdcuUGr1vonl+QHTf3eJa8zoTPTGAtSpolRumaPyWCUTbjSD riTpbE0j7WgUn+42K93WXiX7iMgD8UoTzGhm3xpMUp7/kiUy8J+kt+gZkHyGbV0mcWeL QHcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=OjfRLE115Spgu2sUvsFInByQ1xxaWsZ7j15CRzQupCs=; b=FnYDu8EuTcrOQBaYGIJhyCaVLrX+OWzrub7Xo9bwR8SVwJ0x/Ku0X+Oo3iod4kyE26 5/YOwYrNbNcg9L9yOUJOvFg1s40xPQ/VCQmxceyNJeWQoYdTUxwb+xqaTnuN+8tDqT/D DBT4mbLB9NMaMv0YEVPdvLSwFDvfD64jaT6uz1NzlZguU5Sz0TE0P9Eu5IkyoTu9oedK 1P7JU/WIX+huTwDnma8Ln00aBd7WpvCBsoGv783R9v+pypz+K2/45+fju52/a5yQ9hFh FwCi9gX97gzNJHKPkz3V3ARKAs7tacdEFaE5Nind0Tq4zxPfSfnCWGoPrGnt/xIXJuHx QXJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="A/TB27Kf"; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a50fa93000000b00518584f0859si1156159edr.120.2023.06.12.21.34.17; Mon, 12 Jun 2023 21:34:42 -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=@intel.com header.s=Intel header.b="A/TB27Kf"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239229AbjFMEVy (ORCPT + 99 others); Tue, 13 Jun 2023 00:21:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239066AbjFMEVk (ORCPT ); Tue, 13 Jun 2023 00:21:40 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CAC410DC; Mon, 12 Jun 2023 21:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686630099; x=1718166099; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=bqBqPC3JJdHtcPQBfVoOvpXz2vMkY7r1MvvgzoInsII=; b=A/TB27KftATPY2hCv2jeSmz1tYqhwZXYDuHgGmM+c4xRE8/bZjIsOTWW BC5QhNSGNn+QspndTykh8oHCFsg32de3UAeaj69JbHD5ZjCHPhCyDHdN9 O3gPqQRMMxm7ufsw5XsOulGH06Mvr8I4/Ef8HpsXc9cd2E9z44dO35pMX aerE+6TghmHa8hf0Hia29nqXTCMl53RZ3yT0BPIzTreuNkNE8yKRQ/SAn 63cnuzhmCxWjU5ePqhmBLvOKXNv8nKXfGnym+B/hOSbW7YIcDPjpNB3Ke HWIHE2lyouQTJcxlVrK9c6Frkh4mcQ3lxGzjPCd8kAHRWnYfx+Du81B5H g==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="358222056" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="358222056" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2023 21:21:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="661854936" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="661854936" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2023 21:21:37 -0700 From: Ricardo Neri To: "Peter Zijlstra (Intel)" , Juri Lelli , Vincent Guittot Cc: Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , Lukasz Luba , Ionela Voinescu , Zhao Liu , "Yuan, Perry" , x86@kernel.org, "Joel Fernandes (Google)" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ricardo Neri , "Tim C . Chen" , Zhao Liu Subject: [PATCH v4 03/24] sched/core: Initialize the IPC class of a new task Date: Mon, 12 Jun 2023 21:24:01 -0700 Message-Id: <20230613042422.5344-4-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230613042422.5344-1-ricardo.neri-calderon@linux.intel.com> References: <20230613042422.5344-1-ricardo.neri-calderon@linux.intel.com> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 New tasks shall start life as unclassified. They will be classified by hardware when they run. Cc: Ben Segall Cc: Daniel Bristot de Oliveira Cc: Dietmar Eggemann Cc: Ionela Voinescu Cc: Joel Fernandes (Google) Cc: Len Brown Cc: Lukasz Luba Cc: Mel Gorman Cc: Perry Yuan Cc: Rafael J. Wysocki Cc: Srinivas Pandruvada Cc: Steven Rostedt Cc: Tim C. Chen Cc: Valentin Schneider Cc: Zhao Liu Cc: x86@kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Ricardo Neri --- Changes since v3: * None Changes since v2: * None Changes since v1: * None --- kernel/sched/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index d9a04faa48a1..77b769c23186 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4500,6 +4500,9 @@ static void __sched_fork(unsigned long clone_flags, struct task_struct *p) p->se.prev_sum_exec_runtime = 0; p->se.nr_migrations = 0; p->se.vruntime = 0; +#ifdef CONFIG_IPC_CLASSES + p->ipcc = IPC_CLASS_UNCLASSIFIED; +#endif INIT_LIST_HEAD(&p->se.group_node); #ifdef CONFIG_FAIR_GROUP_SCHED -- 2.25.1