[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1637830481-21709-4-git-send-email-quic_mkshah@quicinc.com>
Date: Thu, 25 Nov 2021 14:24:40 +0530
From: Maulik Shah <quic_mkshah@...cinc.com>
To: <bjorn.andersson@...aro.org>, <rafael@...nel.org>,
<daniel.lezcano@...aro.org>
CC: <linux-arm-msm@...r.kernel.org>, <linux-pm@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <ulf.hansson@...aro.org>,
<quic_lsrao@...cinc.com>, <rnayak@...eaurora.org>,
Lina Iyer <ilina@...eaurora.org>,
Maulik Shah <quic_mkshah@...cinc.com>
Subject: [PATCH 3/4] cpuidle: governor: export cpuidle governor functions
From: Lina Iyer <ilina@...eaurora.org>
Commit 83788c0caed3 ("cpuidle: remove unused exports") removed
capability of registering cpuidle governors, which was unused at that
time. By exporting the symbol, let's allow platform specific modules to
register cpuidle governors and use cpuidle_governor_latency_req() to get
the QoS for the CPU.
Signed-off-by: Lina Iyer <ilina@...eaurora.org>
Signed-off-by: Maulik Shah <quic_mkshah@...cinc.com>
---
drivers/cpuidle/governor.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/cpuidle/governor.c b/drivers/cpuidle/governor.c
index 29acaf4..0e51ed2 100644
--- a/drivers/cpuidle/governor.c
+++ b/drivers/cpuidle/governor.c
@@ -102,6 +102,7 @@ int cpuidle_register_governor(struct cpuidle_governor *gov)
return ret;
}
+EXPORT_SYMBOL_GPL(cpuidle_register_governor);
/**
* cpuidle_governor_latency_req - Compute a latency constraint for CPU
@@ -118,3 +119,4 @@ s64 cpuidle_governor_latency_req(unsigned int cpu)
return (s64)device_req * NSEC_PER_USEC;
}
+EXPORT_SYMBOL_GPL(cpuidle_governor_latency_req);
--
2.7.4
Powered by blists - more mailing lists