Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp906826ybl; Tue, 28 Jan 2020 14:37:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzhhC8yu00/dNSDOGIQPZlZsCzHoVCKj9NJLPOMALMyaJwHZcOI1KfpuGHselWZXvmaVQYM X-Received: by 2002:a9d:6f82:: with SMTP id h2mr18130552otq.69.1580251042402; Tue, 28 Jan 2020 14:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580251042; cv=none; d=google.com; s=arc-20160816; b=UFOOOkHFLEg57f+n1WduXrWMt3DHzOqYcHJiFErOn0MMv0GVUwg+NretOnSvJMatDc eDQJroVp0UBRvTpkfT2tQeqdZxvZ2L4cl2uT6JlirOL2EVjPJKVFMCoFn8VQ1wA0KjkW meO9LCi+lTZRA3recRUnzNvq/wQ/yurho2uWGDI/Rj39PGAWgZSP2sDS31HqVmDfQjPH Lnt+Egvg2skJsjJhaaLNfxdvnmPskRe8VDJX7rAu4AFbf9uiTn/m/HR7AwOnEAAXujqp pFKbCJmcqrCZcdIfXewOGvCZgQTrfHeBjZiW6qLOFJmBQ4HkBhyMnkkNkxUb3ZZBpI8t d2zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=Alf3wKrLzFxGdxa1xCIHUlExjA1QYcMHIj36e4FMV81+a8dB9S7ewgBJcr2iHlQrNl AczN93Ui78pbNoZ5RnUKIXoJLyyQ/dFgWDo1Q3aR3mHhOpFsmOURy9MuDD4p8mUfwfQs Vd5y2dl9K1/Lip9PoC7OUFEmhwyLfZI4uLIlMI7cmYWF4RXI6Kh3h3yfMRXEoI+YQj1J AVeZk7OJcfRd79cs+UZ2z9NEghy3k1pjp4l995HTRPK1b3HdbmTSq2yHLfEK/3bgFwqa U+BMRd2o1Q8EPJ/ijxSGjjZyRQbw32cDcpQp0e1iiyOOGJB4o0F6qsxI/D685lB4XMnI XnBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RIFyqNey; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 106si50400oti.106.2020.01.28.14.37.10; Tue, 28 Jan 2020 14:37:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RIFyqNey; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbgA1WgS (ORCPT + 99 others); Tue, 28 Jan 2020 17:36:18 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:40386 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbgA1WgO (ORCPT ); Tue, 28 Jan 2020 17:36:14 -0500 Received: by mail-qk1-f195.google.com with SMTP id t204so14308246qke.7 for ; Tue, 28 Jan 2020 14:36:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=RIFyqNeyENx3gs0XeWvwMQ5TNNdekuGpAh1VBDTfU9ksAQTobsNMw2UMCL16Ie66Om XhqSXSTGsPVICohM/Ky4thuacKwfkgTvtPMS42plqvLnujJGSRjt99dkTY3SetqnAhh2 LGxbaiEKd21FxCMfNFZEaWAOvHbWoJMaEm7CJDZ9T6yP8i3JGabcAaQz581Bm+sJjBSk 8VafQd3JN/GN9O3v/Vpx7jS+ce7MCl/QJcgJLa2DJPS1gPnm8hAeAeMVy2HDkqSSGmqB k1eUS/Eq8YXzOpefndwjj7lbhAwbOxAdo3acCvjovYjq+oh/wsv0zkg19a/cnQzGfVjY e4Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ui1UWT3XjxwsXbc5J4SYo0+lZb6l6gnf1hsDYBb+xTU=; b=P5//LSfJIKqKZg6aODt4Ex7gTcWSko+09fcvNGBs9W4lKSf8ikahMEJSIui8oDefbZ jy8FLtNBS4Ndx2UC3A7DZTA0eXOmQTLzcPtcUG2K35THgzlVCzaFR3yKp+HU4waeq7qr g9FlUU9RipQKSw9ZJgNacOCoSgt747EYHqAeb+SUup3PREhHYIt/mlHoCIlVe9/aht/J VAI0pWTG4e9yW3TINnnIg1oZnEnEPuYAxwMJ2W88WTXZOHvLU4dihRXc12AhxSDjgZjy 4ZxUEjQWY8XbbEixaqdm6homLTc2maXrn0/83hiWd9SAZHeP4rxfiARKlfLUpYfkfnDV 58lg== X-Gm-Message-State: APjAAAUaL3N9KnMCLvajQvAXL/zBeqaCzhOmuRVDKJJ6Jz+ilK33tOiA Sn3jy5BVAQvc/80ucB5rJCYi9w== X-Received: by 2002:ae9:ea08:: with SMTP id f8mr23066628qkg.489.1580250973279; Tue, 28 Jan 2020 14:36:13 -0800 (PST) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id 124sm13014259qko.11.2020.01.28.14.36.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jan 2020 14:36:12 -0800 (PST) From: Thara Gopinath To: mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rui.zhang@intel.com, qperret@google.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rostedt@goodmis.org, will@kernel.org, catalin.marinas@arm.com, sudeep.holla@arm.com, juri.lelli@redhat.com, corbet@lwn.net Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com Subject: [Patch v9 2/8] sched/topology: Add hook to read per cpu thermal pressure. Date: Tue, 28 Jan 2020 17:36:01 -0500 Message-Id: <1580250967-4386-3-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1580250967-4386-1-git-send-email-thara.gopinath@linaro.org> References: <1580250967-4386-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce arch_cpu_thermal_pressure to retrieve per cpu thermal pressure. Signed-off-by: Thara Gopinath --- v6->v7: - Renamed arch_scale_thermal_capacity to arch_cpu_thermal_pressure as per review comments from Peter, Dietmar and Ionela. include/linux/sched/topology.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index f341163..850b3bf 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -225,6 +225,14 @@ unsigned long arch_scale_cpu_capacity(int cpu) } #endif +#ifndef arch_cpu_thermal_pressure +static __always_inline +unsigned long arch_cpu_thermal_pressure(int cpu) +{ + return 0; +} +#endif + static inline int task_node(const struct task_struct *p) { return cpu_to_node(task_cpu(p)); -- 2.1.4