Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5618398ybl; Tue, 14 Jan 2020 12:00:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwO9hFRA6GgR3ZL9yGoho7iIDCzTUjnawqFP/ooY6pqsxOwBqZS5CWIxAvcfyyCXicqLL6R X-Received: by 2002:aca:75cc:: with SMTP id q195mr17201962oic.178.1579032041519; Tue, 14 Jan 2020 12:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579032041; cv=none; d=google.com; s=arc-20160816; b=07j8mXbPM8X23p55BZkBIixT0xoLMab40vKdMoX4SVPh2CAf4dX2iVyIzZ13j0VJFk x1mjGeXFWrFmYGfg0HBe9aH9cxaWtqWJToXSqBUdizWXpTGEiNY2cxyE+bF+eMHDX5XY FC0fEZOEJ5CIjnIZlrYGkWLN7MH+989VAxjgCzv4Dr6pb5+hmRNj0S1A0pwy2j0LXm/f v4YIFi4snpO7FHa3ZeuHdbHB8YnR7ScT4Df+qszvaJTtWq64s+NoD1W/Qgwpb/H8CMiO EWK0T3KWP3onvgG1IEt/rOVXqAzHpSjMxYd9XAphKQGM4Roy2AQet0GjOVszmnQBMMH1 vqvw== 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=loHHHS6V4PQc7Kof40yPX25pxix99gLrH/VUREm5tXI=; b=YEvy4xzD81gtctxWbqoCLXR4cxM3dIJ1CzU3VGr4x/+XnS+eUo6X5C4TCtpw3Au4kq I0GzxohcK3J4URS6++EJRAJrSHcQf0iQ+ovGNf/8QXHI2FpWKmGwskmGrPbDuSNUoe+r VYTOP+dq0iOCIFGGYunZTpOUeHaiJWS8h6Zw5BpEPpFPrVCuvlxxir068hOoVlizuR5V AjVXBC9L99NWpNBx4ffbhJSIoMyBDCUE/ZtlJ339AcfZOdXZgUrffT4P5HSM6qMdgm+W ZRl4wUV8Roe6qIJ38zv56hBpp7pugYG0J6NKmrppBZTfoyeXIhrlecSa6LG30uflsJF1 +q7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p4ZkRTKJ; 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 q26si5226792otc.260.2020.01.14.12.00.30; Tue, 14 Jan 2020 12:00:41 -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=p4ZkRTKJ; 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 S1728912AbgANT5w (ORCPT + 99 others); Tue, 14 Jan 2020 14:57:52 -0500 Received: from mail-qv1-f68.google.com ([209.85.219.68]:44451 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbgANT5q (ORCPT ); Tue, 14 Jan 2020 14:57:46 -0500 Received: by mail-qv1-f68.google.com with SMTP id n8so6260823qvg.11 for ; Tue, 14 Jan 2020 11:57:46 -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=loHHHS6V4PQc7Kof40yPX25pxix99gLrH/VUREm5tXI=; b=p4ZkRTKJulQfgPDkvEIxmKubrz472Dr5NTI5HlB7LYQ6604xHHnLTcEMYGhLoKjsr2 ka1AbeV68kBI3xAZmU/5Hi3t/ReWXEZwzWiFSgl81IMCnB2uctFS9qzDhAE5lwDERYT4 C1XDtFbAKhNdzZkY1AgYuUdynQGd7pl/zQ3Z5ZypuIYWnSw+oPvywMcVto1al1adhfZh K41XiCcDwByHOVFloWmhuSzgKcHIMK3Y5ooS92eFPayXhLazgCzNqsFsd2CH2f0H/jZY F8rxMrNoaBzZvy315OKAAEBj5l/w313S1L8sPcI5pBYh4sc1dyzNMvm2KkSkTxTyMfvj 9Fyg== 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=loHHHS6V4PQc7Kof40yPX25pxix99gLrH/VUREm5tXI=; b=L4U/ZdG3TGchOyuvMOakDRwcBeTuE6txJfjy15xvMELs4Q9s5uZ0UVtYOX/S9so+Vn qbLEVxiyvL7BttKz+0tI3mWwfwGKg1sMj9j9jqN45U16QbObodk+JM7aEg+121gIDXFE rh/h9Zp5goyNbqv0oYN2DFXjFyA1Sj6E8OL9SJbO1qwir7rBBAjgvCwlQ4YadOMbY7UV gtAx7u1Vv/LWmKTXXw9eAjSElukNcTRzr4mnz8t0W/cWUzTHmI1BIs5GaqS7NJYbjpG2 /1nPxkCQpFZukP9ftsoh29YHag+0RVBKNbMcFJ0iuRmBEaRkmB+HVsDflr7c3+phaXBG 5MBw== X-Gm-Message-State: APjAAAWV9dDy7mvYKpVPffDAB4NTze1U5R1zmvWCcjE41T0zPTrLn3D5 EaDH/TP7kkXjO5jG7eSZSJiXYg== X-Received: by 2002:a0c:8bd2:: with SMTP id a18mr22177922qvc.38.1579031865881; Tue, 14 Jan 2020 11:57:45 -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 b81sm7183497qkc.135.2020.01.14.11.57.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Jan 2020 11:57:45 -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 Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, amit.kucheria@verdurent.com Subject: [Patch v8 2/7] sched/topology: Add hook to read per cpu thermal pressure. Date: Tue, 14 Jan 2020 14:57:34 -0500 Message-Id: <1579031859-18692-3-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1579031859-18692-1-git-send-email-thara.gopinath@linaro.org> References: <1579031859-18692-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 --- include/linux/sched/topology.h | 8 ++++++++ 1 file changed, 8 insertions(+) v6->v7: - Renamed arch_scale_thermal_capacity to arch_cpu_thermal_pressure as per review comments from Peter, Dietmar and Ionela. 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