Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp981770ybl; Thu, 23 Jan 2020 11:17:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw0AE+jMFpBA565VKdsPCMmHVvupzvb21MAM8wySfFaDWLROm8pJk33nDCVF0XO3bfnrhAw X-Received: by 2002:a05:6830:1e11:: with SMTP id s17mr12222642otr.343.1579807024256; Thu, 23 Jan 2020 11:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579807024; cv=none; d=google.com; s=arc-20160816; b=T5oBxOeQoX3icU3EKpifZSr+vDXiqnN+uhlLzOp1jUX3nGjNJWEhFzVh4q2J3akAfX qqXRN412UmNJnq3fJuSbPlOEDMIY5MaA8/oP0X0JtjAJrE0+gBoLHK39wKXffY4TIwQY QrVVtoTWk7FtIql9jicy8V9N3Og0n7lc17glTGRyY78QcvVbwF2Qr+43gcL92N5EnUOG 59GQtKqfuclGCQjMLiUOROhKCitiIzjzzC29qCq40dRVqOM7NH20cNGq5SFgtH8F/lVs Y9soeRCFOPD9JZArS54PmiS/hXsGDBQiKzrmA5YR/AFHRsKWAA0tH4XdzPck+rl3Lyy8 i/Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=jPzw4MXbVUMEvxzWlslz/bFd3OCDM5ZBUHH0/Y2Z46w=; b=Nu9BXjZfVAwus1m5s45Tca+KWNhTqZ/MxgJDkYbl0pWODK1Pck32ov44EsaOdB0e4/ gOheg+oEST2AdgRd7OPTwndIPMXFPU1eDOytRtsZTmm0uXq/QHw8Tqu36xeZu6Ss1RWU Xj4RQFEELuROWU9S2aAXuGjRCN5eQKcPakiEGFxH87oPEjQ6PmMFLyY3VumtTHx63LKe AY9/lLTB7F/GX/cEsv/KASapKqc80KMNbBdHdQDuBRNh2TRGz+hloMoUorlB7Vrd8Oic 8NDmkU6HHPwgjm9Ix0CCk5fjCdEtV2uILCY2l6QkezIBSJp7RYw8s+hoYEyj3NYs6Cq+ MJ9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si1261694oie.257.2020.01.23.11.16.51; Thu, 23 Jan 2020 11:17:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729012AbgAWTPv (ORCPT + 99 others); Thu, 23 Jan 2020 14:15:51 -0500 Received: from foss.arm.com ([217.140.110.172]:43574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727590AbgAWTPv (ORCPT ); Thu, 23 Jan 2020 14:15:51 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A28A71FB; Thu, 23 Jan 2020 11:15:50 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B70123F52E; Thu, 23 Jan 2020 11:15:48 -0800 (PST) Subject: Re: [Patch v8 1/7] sched/pelt: Add support to track thermal pressure To: Peter Zijlstra , Thara Gopinath Cc: mingo@redhat.com, ionela.voinescu@arm.com, vincent.guittot@linaro.org, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com References: <1579031859-18692-1-git-send-email-thara.gopinath@linaro.org> <1579031859-18692-2-git-send-email-thara.gopinath@linaro.org> <20200116151724.GR2827@hirez.programming.kicks-ass.net> From: Dietmar Eggemann Message-ID: Date: Thu, 23 Jan 2020 20:15:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200116151724.GR2827@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/01/2020 16:17, Peter Zijlstra wrote: > On Tue, Jan 14, 2020 at 02:57:33PM -0500, Thara Gopinath wrote: > >> diff --git a/kernel/sched/pelt.h b/kernel/sched/pelt.h >> index afff644..bf1e17b 100644 >> --- a/kernel/sched/pelt.h >> +++ b/kernel/sched/pelt.h >> @@ -7,6 +7,16 @@ int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq); >> int update_rt_rq_load_avg(u64 now, struct rq *rq, int running); >> int update_dl_rq_load_avg(u64 now, struct rq *rq, int running); >> >> +#ifdef CONFIG_HAVE_SCHED_THERMAL_PRESSURE I assume your plan is to enable this for Arm and Arm64? Otherwise the code in 3/7 should also be guarded by this. diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index e688dfad0b72..9eb414b2c8b9 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -164,6 +164,7 @@ config ARM64 select HAVE_FUNCTION_ARG_ACCESS_API select HAVE_RCU_TABLE_FREE select HAVE_RSEQ + select HAVE_SCHED_THERMAL_PRESSURE select HAVE_STACKPROTECTOR select HAVE_SYSCALL_TRACEPOINTS Currently it lives in the 'CPU/Task time and stats accounting' of .config which doesn't feel right to me. [...]