Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2485673ybv; Fri, 21 Feb 2020 16:53:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyntUvw8jcKfDkI9+VtTZt7R+h03TGg1L3QjLUzjbGEG8pZrlprDjoylgGZ1AAxwA4Im+P6 X-Received: by 2002:a9d:53cb:: with SMTP id i11mr31524011oth.158.1582332784916; Fri, 21 Feb 2020 16:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582332784; cv=none; d=google.com; s=arc-20160816; b=heH5uxnxtz8NgXbIktzPmoW/Gv7iqyqy4f6DnnWPacc6bMeMBVgs+QS1dnRqaseZA7 gdIdCh3+SSreuayIY6kd3gwldGOR1BHU3GIU/6C53mdUiVXbAIblTKVe6HiBkfYoPzGu B8bLPO2lE39gm0z0oKjd8yiiKiFBpnOgRtZOfdmg/jkO2bbX/vC5zi5GzzOJhOmj9Q/V jgCMzUJX81tOZN1EWa6bIKRMos9okvkiqrYit9bzJkyQOV0zeA9wYkmu5bRmY8Od4w3+ /H2AK1fuXvTXm2C+B+F7Rz/u0Hii+Cg7sEOXUOwg+cuf/sbWwRKRrVvUTD3Y8JMwzTL+ OydA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5fmYqUo9ZnmA2UTXyVRTEs66bilKAJzOSAbx27Z0Zc0=; b=J68cn1aNrrmS1kJCSDMK0y4JIOR2geBY4O47VmNA22jZDvzJiwFfzEtT2Pbnloyz9o mPqCtiEUBXANEUZTaEzcpvUXjUN3SqlWuH29kjRw071jBJwLKv4pifHvEVYP50N5PA2M oWAVG2/5dIRdHzGKTvgiUQWdhWs2+ZOsle04pVb29PZO6s6VzVPBX5jl9DPaNsPWUexw 3VjiPJq8nqh4/nUWMBp8GKEumTIHloiHegJDxyfTxF9/MftHrGl9igBZORn3Oh6QYTm5 LXa3ig0uGSt6qIkVuFI+ipr0VfvBNYymgdl97fGLpcrcRbnNKvNCE5mEZzF9eH8EnEjI Wxaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="RqX/K3bj"; 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 j17si2142684otl.278.2020.02.21.16.52.52; Fri, 21 Feb 2020 16:53: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; dkim=pass header.i=@linaro.org header.s=google header.b="RqX/K3bj"; 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 S1727804AbgBVAwZ (ORCPT + 99 others); Fri, 21 Feb 2020 19:52:25 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:35590 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726802AbgBVAwX (ORCPT ); Fri, 21 Feb 2020 19:52:23 -0500 Received: by mail-qk1-f194.google.com with SMTP id l13so927981qkk.2 for ; Fri, 21 Feb 2020 16:52:21 -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 :mime-version:content-transfer-encoding; bh=5fmYqUo9ZnmA2UTXyVRTEs66bilKAJzOSAbx27Z0Zc0=; b=RqX/K3bj40cRddLtL5dyYFr5stEdFUKGsM2slU8kuwMp4HrcI8h+Hv16ffEMovEDAA RLbGBIC8j0ShtmkFJD7xQqnx+0pUItWAamx3UmuePX7F902zuHe+8DInp1Sj+UvQAoed 5wPnez6eIgzdhrs0HS7gmWLS4FW2LymFDU6ig+pMYPmwgOjmRUwkLQ3xFq/1Y0hkDaUs bAZt5OwyOFsl/EpPWhtbZmuBJCVjk+p7B4dJvzV21MZ9To6pydv/Km17hKmslnRegbae AlXICRou8usMeF/LfWtjj6K4SPL8mJXaGtX3UcQ5iw9AC5KikBc9QRG+YL/4rvKE5hwf I5QA== 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:mime-version:content-transfer-encoding; bh=5fmYqUo9ZnmA2UTXyVRTEs66bilKAJzOSAbx27Z0Zc0=; b=PfN6Qp2ZwBQDzvsL9AFNTV7DadMsjRGG01qLKGyZ9ZaE08zYh6MjXerSTg8o0TeJmq jQ5obJlNIWHx3heAC1AqxKBK5lZZIiAiLfP5LEVOpSfHs4/VSBRnbZBXOW7HPmf6tlt4 E73D4qh604pOG5kBTKNw27H/q9Hm+SwKlN4vonGvJPo/A2esbyScay1JAJC07xUgbwrN 2re3wZDCO2lzjGPbSR08//psYdL0NF15pUgOedPlOX083N4FZJMNqEogvVsJdM+VQveL SS5AQoJ7iNrIqxkhX3vqP1Oe+PSbhmXtdu0EqDfTDU+bIlIoAlUynpbeX/lAhHJgAwCu s4bg== X-Gm-Message-State: APjAAAVzUko3ns+nOtj+G0YfTo0pjXlvyXhopcB4+VZ0KIXLKaBdVH6C 3akPqJJDyRoOYFb54zFfG4yHDg== X-Received: by 2002:a37:a9d2:: with SMTP id s201mr36313729qke.171.1582332741077; Fri, 21 Feb 2020 16:52:21 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id 12sm359559qkj.136.2020.02.21.16.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 16:52:20 -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 v10 4/9] arm64/topology: Populate arch_scale_thermal_pressure for arm64 platforms Date: Fri, 21 Feb 2020 19:52:08 -0500 Message-Id: <20200222005213.3873-5-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200222005213.3873-1-thara.gopinath@linaro.org> References: <20200222005213.3873-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hook up topology_get_thermal_pressure to arch_scale_thermal_pressure thus enabling scheduler to retrieve instantaneous thermal pressure of a cpu. Signed-off-by: Thara Gopinath --- arch/arm64/include/asm/topology.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/include/asm/topology.h b/arch/arm64/include/asm/topology.h index a4d945db95a2..cbd70d78ef15 100644 --- a/arch/arm64/include/asm/topology.h +++ b/arch/arm64/include/asm/topology.h @@ -25,6 +25,9 @@ int pcibus_to_node(struct pci_bus *bus); /* Enable topology flag updates */ #define arch_update_cpu_topology topology_update_cpu_topology +/* Replace task scheduler's default thermal pressure retrieve API */ +#define arch_scale_thermal_pressure topology_get_thermal_pressure + #include #endif /* _ASM_ARM_TOPOLOGY_H */ -- 2.20.1