Message ID | 20230207051105.11575-6-ricardo.neri-calderon@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2653017wrn; Mon, 6 Feb 2023 21:03:18 -0800 (PST) X-Google-Smtp-Source: AK7set/dXCTDWgmvKt6MRpwIsQago6j62apIEW8kEKz91dR9kY6bFfCDNYVcF3jA4AdKzMgmHFrQ X-Received: by 2002:a05:6a20:8f03:b0:b8:71b7:b903 with SMTP id b3-20020a056a208f0300b000b871b7b903mr2674358pzk.31.1675746198288; Mon, 06 Feb 2023 21:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675746198; cv=none; d=google.com; s=arc-20160816; b=ezQcg9uCj8PokclLUQnIHLeH6sjo3V7H6WrsMQKC6EBaEZlVbxm/ZJG82r3GxDJHbi EBfLTxzPzFMG62p89+gBts9sH6kP0O/9UkKLF51NaHrhnhMb2w06ZY2x7oqxEbRvRBNG vUwgwoIXotzUNJJ7Mi4DIxwU5ExsXx/qF58Wbhzn6hjORYgXZaRwbTtmsNI0kXTtmZUj oiIL/nDvM/bU7V0tK3dnfTZHSjdP9F0EykQfUcT3V3CnuJvEWV1isZcRYs8kb7e9FPka ZunnFbLgR0/GMh+l+ff/FBCpmv92CbLve8Xi3T9L6IAzVwnY2kp8T/9BOrlyNqHXorlH 0H6A== 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=gN0OgzuqdNMVjhAbHf3DQ6NuXOfSgPMfa6XOy4wAB5E=; b=OD/a03VfmnG+Zv5Z37+81gsq5wQJ2u+rYcXr+EF/CP9A3uanRmLz5fGWr5AnpFO0nB kHIAC/80aPUBHkP1MTN704xWrP9ofYUqvOmgnRvkfRl5miiWWKyFkNRzzD2MVKjBppJp tXyw2DWfJK5P0ZubEjBTG3gqbddoeRWpLgCMQrv5V/lYrug0r/ncSMdmj9Us+bwJrDnD 7BjQ9BfrzRj2YDkUVjNY1tDBECIjuRTEJGmdTxPbpaDEpqtBafD65Qu/76yKFJCI90nM Fu1SDB0lgkAYUPdA46oQJtRsZd2SsA0ZV+iOmr2dO1NQqCSURhneyWbKGGqQ7buIUrNv OpmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QjCCsi4Z; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a056a00008700b0057fdee40d48si13585852pfj.173.2023.02.06.21.03.03; Mon, 06 Feb 2023 21:03:18 -0800 (PST) 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=QjCCsi4Z; 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 S230294AbjBGFC2 (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Tue, 7 Feb 2023 00:02:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbjBGFBy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Feb 2023 00:01:54 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F40DE5273; Mon, 6 Feb 2023 21:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675746110; x=1707282110; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=HuUFjeqT6UwPE0HFZg/3PfgKeD3R8aChweTbYJKxkt4=; b=QjCCsi4ZUGb6//og4Z/aoHF0/yhqe5A+FtwDlMIglvBgQHi0cXi4wzEJ Jynw7Ln5n6tP7vtOiA4e2DI2FWRkstmy+dsWhzA/71LphXv9pMCfDhGaD jN6gha8DnEde9QjaRdiuhycLBUHnY+50YhmrAbWUMQb2japJ31Lx2hjTK d5OMLkg6eiMxfxj0fvOSMIhfGFyhOx3iDpk8QFH/lHSEYmvustbPosyCv wxUzq9aDWABZCda6HcHDI5i3Qk7iU5GEpZAXvuQ9/IZqdVrhbBLLIcSj5 OwEwn3QU+5YD7NmkU7qUhsQsqICtTxkcrDjEcSLJlRmRBhMoUsoXUrDFW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="415625782" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="415625782" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2023 21:01:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="668657706" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="668657706" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmsmga007.fm.intel.com with ESMTP; 06 Feb 2023 21:01:40 -0800 From: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> To: "Peter Zijlstra (Intel)" <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org> Cc: Ricardo Neri <ricardo.neri@intel.com>, "Ravi V. Shankar" <ravi.v.shankar@intel.com>, Ben Segall <bsegall@google.com>, Daniel Bristot de Oliveira <bristot@redhat.com>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Len Brown <len.brown@intel.com>, Mel Gorman <mgorman@suse.de>, "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>, Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>, Steven Rostedt <rostedt@goodmis.org>, Tim Chen <tim.c.chen@linux.intel.com>, Valentin Schneider <vschneid@redhat.com>, Lukasz Luba <lukasz.luba@arm.com>, Ionela Voinescu <ionela.voinescu@arm.com>, x86@kernel.org, "Joel Fernandes (Google)" <joel@joelfernandes.org>, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ricardo Neri <ricardo.neri-calderon@linux.intel.com>, "Tim C . Chen" <tim.c.chen@intel.com> Subject: [PATCH v3 05/24] sched/core: Update the IPC class of the current task Date: Mon, 6 Feb 2023 21:10:46 -0800 Message-Id: <20230207051105.11575-6-ricardo.neri-calderon@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230207051105.11575-1-ricardo.neri-calderon@linux.intel.com> References: <20230207051105.11575-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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757147245409623801?= X-GMAIL-MSGID: =?utf-8?q?1757147245409623801?= |
Series |
sched: Introduce classes of tasks for load balance
|
|
Commit Message
Ricardo Neri
Feb. 7, 2023, 5:10 a.m. UTC
When supported, hardware monitors the instruction stream to classify the
current task. Hence, at userspace tick, we are ready to read the most
recent classification result for the current task.
Cc: Ben Segall <bsegall@google.com>
Cc: Daniel Bristot de Oliveira <bristot@redhat.com>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Ionela Voinescu <ionela.voinescu@arm.com>
Cc: Joel Fernandes (Google) <joel@joelfernandes.org>
Cc: Len Brown <len.brown@intel.com>
Cc: Lukasz Luba <lukasz.luba@arm.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Tim C. Chen <tim.c.chen@intel.com>
Cc: Valentin Schneider <vschneid@redhat.com>
Cc: x86@kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
---
Changes since v2:
* None
Changes since v1:
* Removed argument smt_siblings_idle from call to arch_ipcc_update().
* Used the new IPCC interfaces names.
---
kernel/sched/core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 39d218a2f243..9f4e9cc16df8 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5567,6 +5567,9 @@ void scheduler_tick(bool user_tick) if (housekeeping_cpu(cpu, HK_TYPE_TICK)) arch_scale_freq_tick(); + if (sched_ipcc_enabled() && user_tick) + arch_update_ipcc(curr); + sched_clock_tick(); rq_lock(rq, &rf);