Loading drivers/cpufreq/Kconfig +2 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,8 @@ config CPU_FREQ_GOV_CONSERVATIVE config GENERIC_CPUFREQ_CPU0 tristate "Generic CPU0 cpufreq driver" depends on HAVE_CLK && OF # if CPU_THERMAL is on and THERMAL=m, CPU0 cannot be =y: depends on !CPU_THERMAL || THERMAL select PM_OPP help This adds a generic cpufreq driver for CPU0 frequency management. Loading drivers/cpufreq/cpufreq.c +4 −6 Original line number Diff line number Diff line Loading @@ -2242,10 +2242,8 @@ int cpufreq_update_policy(unsigned int cpu) struct cpufreq_policy new_policy; int ret; if (!policy) { ret = -ENODEV; goto no_policy; } if (!policy) return -ENODEV; down_write(&policy->rwsem); Loading @@ -2264,7 +2262,7 @@ int cpufreq_update_policy(unsigned int cpu) new_policy.cur = cpufreq_driver->get(cpu); if (WARN_ON(!new_policy.cur)) { ret = -EIO; goto no_policy; goto unlock; } if (!policy->cur) { Loading @@ -2279,10 +2277,10 @@ int cpufreq_update_policy(unsigned int cpu) ret = cpufreq_set_policy(policy, &new_policy); unlock: up_write(&policy->rwsem); cpufreq_cpu_put(policy); no_policy: return ret; } EXPORT_SYMBOL(cpufreq_update_policy); Loading drivers/cpufreq/intel_pstate.c +1 −4 Original line number Diff line number Diff line Loading @@ -196,10 +196,7 @@ static signed int pid_calc(struct _pid *pid, int32_t busy) pid->last_err = fp_error; result = pterm + mul_fp(pid->integral, pid->i_gain) + dterm; if (result >= 0) result = result + (1 << (FRAC_BITS-1)); else result = result - (1 << (FRAC_BITS-1)); return (signed int)fp_toint(result); } Loading drivers/cpuidle/cpuidle-armada-370-xp.c +2 −2 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { .power_usage = 50, .target_residency = 100, .flags = CPUIDLE_FLAG_TIME_VALID, .name = "MV CPU IDLE", .name = "Idle", .desc = "CPU power down", }, .states[2] = { Loading @@ -65,7 +65,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { .target_residency = 1000, .flags = CPUIDLE_FLAG_TIME_VALID | ARMADA_370_XP_FLAG_DEEP_IDLE, .name = "MV CPU DEEP IDLE", .name = "Deep idle", .desc = "CPU and L2 Fabric power down", }, .state_count = ARMADA_370_XP_MAX_STATES, Loading Loading
drivers/cpufreq/Kconfig +2 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,8 @@ config CPU_FREQ_GOV_CONSERVATIVE config GENERIC_CPUFREQ_CPU0 tristate "Generic CPU0 cpufreq driver" depends on HAVE_CLK && OF # if CPU_THERMAL is on and THERMAL=m, CPU0 cannot be =y: depends on !CPU_THERMAL || THERMAL select PM_OPP help This adds a generic cpufreq driver for CPU0 frequency management. Loading
drivers/cpufreq/cpufreq.c +4 −6 Original line number Diff line number Diff line Loading @@ -2242,10 +2242,8 @@ int cpufreq_update_policy(unsigned int cpu) struct cpufreq_policy new_policy; int ret; if (!policy) { ret = -ENODEV; goto no_policy; } if (!policy) return -ENODEV; down_write(&policy->rwsem); Loading @@ -2264,7 +2262,7 @@ int cpufreq_update_policy(unsigned int cpu) new_policy.cur = cpufreq_driver->get(cpu); if (WARN_ON(!new_policy.cur)) { ret = -EIO; goto no_policy; goto unlock; } if (!policy->cur) { Loading @@ -2279,10 +2277,10 @@ int cpufreq_update_policy(unsigned int cpu) ret = cpufreq_set_policy(policy, &new_policy); unlock: up_write(&policy->rwsem); cpufreq_cpu_put(policy); no_policy: return ret; } EXPORT_SYMBOL(cpufreq_update_policy); Loading
drivers/cpufreq/intel_pstate.c +1 −4 Original line number Diff line number Diff line Loading @@ -196,10 +196,7 @@ static signed int pid_calc(struct _pid *pid, int32_t busy) pid->last_err = fp_error; result = pterm + mul_fp(pid->integral, pid->i_gain) + dterm; if (result >= 0) result = result + (1 << (FRAC_BITS-1)); else result = result - (1 << (FRAC_BITS-1)); return (signed int)fp_toint(result); } Loading
drivers/cpuidle/cpuidle-armada-370-xp.c +2 −2 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { .power_usage = 50, .target_residency = 100, .flags = CPUIDLE_FLAG_TIME_VALID, .name = "MV CPU IDLE", .name = "Idle", .desc = "CPU power down", }, .states[2] = { Loading @@ -65,7 +65,7 @@ static struct cpuidle_driver armada_370_xp_idle_driver = { .target_residency = 1000, .flags = CPUIDLE_FLAG_TIME_VALID | ARMADA_370_XP_FLAG_DEEP_IDLE, .name = "MV CPU DEEP IDLE", .name = "Deep idle", .desc = "CPU and L2 Fabric power down", }, .state_count = ARMADA_370_XP_MAX_STATES, Loading