mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
lpm-levels: Drop deepest cluster idle state selection
This reverts commits: - 6243a7f5de7b6bc0fa2d6d1fd2035d1b031393c4 [lpm-levels: Force to enable deepest cluster idle state] - 3169399755ba8c900f6e9fa9fc2537d1b746f384 [lpm-levels: Allow enforcing deepest cluster idle state] Change-Id: I669a73682143614dde9a7027cadd1aaad962a919 Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
a6ebac7f09
commit
5898c2d440
@ -68,9 +68,6 @@ struct lpm_cluster *lpm_root_node;
|
||||
static bool lpm_prediction = true;
|
||||
module_param_named(lpm_prediction, lpm_prediction, bool, 0664);
|
||||
|
||||
static bool cluster_use_deepest_state = true;
|
||||
module_param(cluster_use_deepest_state, bool, 0664);
|
||||
|
||||
static uint32_t bias_hyst;
|
||||
module_param_named(bias_hyst, bias_hyst, uint, 0664);
|
||||
static bool lpm_ipi_prediction = true;
|
||||
@ -134,11 +131,6 @@ uint32_t register_system_pm_ops(struct system_pm_ops *pm_ops)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void lpm_cluster_use_deepest_state(bool enable)
|
||||
{
|
||||
cluster_use_deepest_state = enable;
|
||||
}
|
||||
|
||||
static uint32_t least_cluster_latency(struct lpm_cluster *cluster,
|
||||
struct latency_level *lat_level)
|
||||
{
|
||||
@ -964,26 +956,6 @@ static void clear_cl_predict_history(void)
|
||||
}
|
||||
}
|
||||
|
||||
static int cluster_select_deepest(struct lpm_cluster *cluster)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = cluster->nlevels - 1; i >= 0; i--) {
|
||||
struct lpm_cluster_level *level = &cluster->levels[i];
|
||||
|
||||
if (level->notify_rpm) {
|
||||
if (!(sys_pm_ops && sys_pm_ops->sleep_allowed))
|
||||
continue;
|
||||
if (!sys_pm_ops->sleep_allowed())
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
static int cluster_select(struct lpm_cluster *cluster, bool from_idle,
|
||||
int *ispred)
|
||||
{
|
||||
@ -998,9 +970,6 @@ static int cluster_select(struct lpm_cluster *cluster, bool from_idle,
|
||||
if (!cluster)
|
||||
return -EINVAL;
|
||||
|
||||
if (cluster_use_deepest_state)
|
||||
return cluster_select_deepest(cluster);
|
||||
|
||||
sleep_us = (uint32_t)get_cluster_sleep_time(cluster,
|
||||
from_idle, &cpupred_us);
|
||||
|
||||
|
@ -23,7 +23,6 @@ struct system_pm_ops {
|
||||
#if defined(CONFIG_MSM_PM) || defined(CONFIG_MSM_PM_LEGACY)
|
||||
uint32_t register_system_pm_ops(struct system_pm_ops *pm_ops);
|
||||
void update_ipi_history(int cpu);
|
||||
void lpm_cluster_use_deepest_state(bool enable);
|
||||
#else
|
||||
static inline uint32_t register_system_pm_ops(struct system_pm_ops *pm_ops)
|
||||
{ return -ENODEV; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user