Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp686468rwd; Mon, 12 Jun 2023 21:36:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mPCbm7C5YigI89MMLQFCtj6kpsffy2POTUrLhGyrN+5vorhS6IVwsELHVef6+/pZ8cRlc X-Received: by 2002:a17:906:99c4:b0:977:4b64:f5e8 with SMTP id s4-20020a17090699c400b009774b64f5e8mr11646887ejn.57.1686631011973; Mon, 12 Jun 2023 21:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686631011; cv=none; d=google.com; s=arc-20160816; b=rjVuT5jQhTxE92ochgC9rkd40nyRfyTts1VZspby2EKsxu8rAkIZT5zzp+wAcg9eLD Wi6/n5ONf7ce6hT8cT6SE5vNgp8z+lyBwGTEDaBo1oSS/2xL1FZX2Da/HuL5X+gdzDl4 gK+odxfYk+MlL0u/XOaOwbpA9oSUbA+qbYmzntXpJnapmItOL65+TYsZCuR5Ot/rr4/m Kz0ZnHuWJdIePAAZyGAB3oHw2d46rern4VsXgKdgFyugm3uILlXTBLxUaFKEGzad0cn4 1n4qAAl1yMMb6/3gLipthgQWE2KL6TcW0LIsSTeUG+p4aqhMCNIBNkeBURkaSTmzYS+M uvcw== 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=e0d2WzwG+PEdpy0wkm0EWSTw0F6t5N4uFyr7LxN+aic=; b=myq17SkLoH2/OI3Rlq+AuGLlPV8aM72WIk2Byd/v4cfrkizKg6RnK7yxyZ+sXI6gMs pWEJCpePLMz2zFk2q4U12xTdVYyMUdLiVhHZwPbDUiiRCBkCKoSl621i8HbV1vTfopZf vkEahuoo+scXvHLcbnyYDRwfZfF8gLZXIQy0M74hcWNf0XT3fycjziIvhDo1FNc62c9J gUCANMrJnzhdMPHgdReGN0OH9kPec07/xrlr0fnG/5inO2PSDO9oUqVToPftssjm0OX+ uCwHww9m5Lc0PkWgl+A6hyLGV8uo9ApuJdYt+jOfonDHK0SD6ECxswc3e/lJ+QRJIp/F 3etg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bgDoqt1V; 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 y12-20020aa7c24c000000b005147c77e34fsi5125661edo.116.2023.06.12.21.36.28; Mon, 12 Jun 2023 21:36:51 -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=bgDoqt1V; 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 S239725AbjFMEZP (ORCPT + 99 others); Tue, 13 Jun 2023 00:25:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239671AbjFMEYb (ORCPT ); Tue, 13 Jun 2023 00:24:31 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C5112683; Mon, 12 Jun 2023 21:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686630138; x=1718166138; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=LbqLOEgq0/wctp/fT6BSArteOuKzDX/IB/thMI/XJtY=; b=bgDoqt1VsD6pssc8367BYTft6Hmvz421kZqef/PieLoYxdu6RDdRFDtx GmADbcinDPVSEdHuGOb+VKRZ6I0+7MHQ4NYCOMLvLcxoM5b6Fv12Xs/U0 H69bAUw9mSZKm0oupZrHhAqCosKIgIosrdmNF50kcfnO7cfsNJysLaxyO zq/f5Zjr2X36hOxUMxT+/ulclKNUifyMO26gP1PVF9SpQsrbGfNNWB2b1 4SdgYm4u1/AO1lvbetPp+4JQRLVeW4H/4TRwUcyUBADpw61EDZ7cppntM DNsH3Pk8kIxDjairoerntOC9VvQFyiOuU1L+2nH1AGOs0EL5Oq4ZWJOCF w==; X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="358222257" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="358222257" 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:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10739"; a="661854991" X-IronPort-AV: E=Sophos;i="6.00,238,1681196400"; d="scan'208";a="661854991" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2023 21:21:58 -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 19/24] sched/core: Initialize helpers of task classification Date: Mon, 12 Jun 2023 21:24:17 -0700 Message-Id: <20230613042422.5344-20-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 Just as tasks start life unclassified, initialize the classification auxiliary variables. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 876396b1d077..9c28be596938 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -4502,6 +4502,8 @@ static void __sched_fork(unsigned long clone_flags, struct task_struct *p) p->se.vruntime = 0; #ifdef CONFIG_IPC_CLASSES p->ipcc = IPC_CLASS_UNCLASSIFIED; + p->ipcc_tmp = IPC_CLASS_UNCLASSIFIED; + p->ipcc_cntr = 0; #endif INIT_LIST_HEAD(&p->se.group_node); -- 2.25.1