Loading drivers/cpufreq/arm_big_little.c +1 −1 Original line number Diff line number Diff line Loading @@ -540,7 +540,7 @@ static void bL_cpufreq_ready(struct cpufreq_policy *policy) &power_coefficient); cdev[cur_cluster] = of_cpufreq_power_cooling_register(np, policy->related_cpus, power_coefficient, NULL); policy, power_coefficient, NULL); if (IS_ERR(cdev[cur_cluster])) { dev_err(cpu_dev, "running cpufreq without cooling device: %ld\n", Loading drivers/cpufreq/cpufreq-dt.c +1 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,7 @@ static void cpufreq_ready(struct cpufreq_policy *policy) &power_coefficient); priv->cdev = of_cpufreq_power_cooling_register(np, policy->related_cpus, power_coefficient, NULL); policy, power_coefficient, NULL); if (IS_ERR(priv->cdev)) { dev_err(priv->cpu_dev, "running cpufreq without cooling device: %ld\n", Loading drivers/cpufreq/cpufreq_stats.c +4 −9 Original line number Diff line number Diff line Loading @@ -170,11 +170,10 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) unsigned int i = 0, count = 0, ret = -ENOMEM; struct cpufreq_stats *stats; unsigned int alloc_size; struct cpufreq_frequency_table *pos, *table; struct cpufreq_frequency_table *pos; /* We need cpufreq table for creating stats table */ table = policy->freq_table; if (unlikely(!table)) count = cpufreq_table_count_valid_entries(policy); if (!count) return; /* stats already initialized */ Loading @@ -185,10 +184,6 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) if (!stats) return; /* Find total allocation size */ cpufreq_for_each_valid_entry(pos, table) count++; alloc_size = count * sizeof(int) + count * sizeof(u64); alloc_size += count * count * sizeof(int); Loading @@ -205,7 +200,7 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) stats->max_state = count; /* Find valid-unique entries */ cpufreq_for_each_valid_entry(pos, table) cpufreq_for_each_valid_entry(pos, policy->freq_table) if (freq_table_get_index(stats, pos->frequency) == -1) stats->freq_table[i++] = pos->frequency; Loading drivers/cpufreq/dbx500-cpufreq.c +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ static int dbx500_cpufreq_exit(struct cpufreq_policy *policy) static void dbx500_cpufreq_ready(struct cpufreq_policy *policy) { cdev = cpufreq_cooling_register(policy->cpus); cdev = cpufreq_cooling_register(policy); if (IS_ERR(cdev)) pr_err("Failed to register cooling device %ld\n", PTR_ERR(cdev)); else Loading drivers/cpufreq/mt8173-cpufreq.c +1 −3 Original line number Diff line number Diff line Loading @@ -320,9 +320,7 @@ static void mtk_cpufreq_ready(struct cpufreq_policy *policy) of_property_read_u32(np, DYNAMIC_POWER, &capacitance); info->cdev = of_cpufreq_power_cooling_register(np, policy->related_cpus, capacitance, NULL); policy, capacitance, NULL); if (IS_ERR(info->cdev)) { dev_err(info->cpu_dev, Loading Loading
drivers/cpufreq/arm_big_little.c +1 −1 Original line number Diff line number Diff line Loading @@ -540,7 +540,7 @@ static void bL_cpufreq_ready(struct cpufreq_policy *policy) &power_coefficient); cdev[cur_cluster] = of_cpufreq_power_cooling_register(np, policy->related_cpus, power_coefficient, NULL); policy, power_coefficient, NULL); if (IS_ERR(cdev[cur_cluster])) { dev_err(cpu_dev, "running cpufreq without cooling device: %ld\n", Loading
drivers/cpufreq/cpufreq-dt.c +1 −1 Original line number Diff line number Diff line Loading @@ -326,7 +326,7 @@ static void cpufreq_ready(struct cpufreq_policy *policy) &power_coefficient); priv->cdev = of_cpufreq_power_cooling_register(np, policy->related_cpus, power_coefficient, NULL); policy, power_coefficient, NULL); if (IS_ERR(priv->cdev)) { dev_err(priv->cpu_dev, "running cpufreq without cooling device: %ld\n", Loading
drivers/cpufreq/cpufreq_stats.c +4 −9 Original line number Diff line number Diff line Loading @@ -170,11 +170,10 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) unsigned int i = 0, count = 0, ret = -ENOMEM; struct cpufreq_stats *stats; unsigned int alloc_size; struct cpufreq_frequency_table *pos, *table; struct cpufreq_frequency_table *pos; /* We need cpufreq table for creating stats table */ table = policy->freq_table; if (unlikely(!table)) count = cpufreq_table_count_valid_entries(policy); if (!count) return; /* stats already initialized */ Loading @@ -185,10 +184,6 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) if (!stats) return; /* Find total allocation size */ cpufreq_for_each_valid_entry(pos, table) count++; alloc_size = count * sizeof(int) + count * sizeof(u64); alloc_size += count * count * sizeof(int); Loading @@ -205,7 +200,7 @@ void cpufreq_stats_create_table(struct cpufreq_policy *policy) stats->max_state = count; /* Find valid-unique entries */ cpufreq_for_each_valid_entry(pos, table) cpufreq_for_each_valid_entry(pos, policy->freq_table) if (freq_table_get_index(stats, pos->frequency) == -1) stats->freq_table[i++] = pos->frequency; Loading
drivers/cpufreq/dbx500-cpufreq.c +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ static int dbx500_cpufreq_exit(struct cpufreq_policy *policy) static void dbx500_cpufreq_ready(struct cpufreq_policy *policy) { cdev = cpufreq_cooling_register(policy->cpus); cdev = cpufreq_cooling_register(policy); if (IS_ERR(cdev)) pr_err("Failed to register cooling device %ld\n", PTR_ERR(cdev)); else Loading
drivers/cpufreq/mt8173-cpufreq.c +1 −3 Original line number Diff line number Diff line Loading @@ -320,9 +320,7 @@ static void mtk_cpufreq_ready(struct cpufreq_policy *policy) of_property_read_u32(np, DYNAMIC_POWER, &capacitance); info->cdev = of_cpufreq_power_cooling_register(np, policy->related_cpus, capacitance, NULL); policy, capacitance, NULL); if (IS_ERR(info->cdev)) { dev_err(info->cpu_dev, Loading