diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-27 18:04:30 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-28 17:12:07 -0400 |
commit | 6404367862bb25730e373cb9d443757b76f6abcc (patch) | |
tree | d44c03b0a94eedc2ed32fdcf7d3a7c1b32fa3d1f /drivers/cpufreq | |
parent | e14cf8857ebd7486a4e30fa7dad06ba187e6cb04 (diff) |
cpufreq: intel_pstate: Drop pointless initialization of PID parameters
The P-state selection algorithm used by intel_pstate for Atom
processors is not based on the PID controller and the initialization
of PID parametrs for those processors is pointless and confusing, so
drop it.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index a7ed42d6f366..efce4e7eeeca 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -1540,14 +1540,6 @@ static struct cpu_defaults core_params = { | |||
1540 | }; | 1540 | }; |
1541 | 1541 | ||
1542 | static const struct cpu_defaults silvermont_params = { | 1542 | static const struct cpu_defaults silvermont_params = { |
1543 | .pid_policy = { | ||
1544 | .sample_rate_ms = 10, | ||
1545 | .deadband = 0, | ||
1546 | .setpoint = 60, | ||
1547 | .p_gain_pct = 14, | ||
1548 | .d_gain_pct = 0, | ||
1549 | .i_gain_pct = 4, | ||
1550 | }, | ||
1551 | .funcs = { | 1543 | .funcs = { |
1552 | .get_max = atom_get_max_pstate, | 1544 | .get_max = atom_get_max_pstate, |
1553 | .get_max_physical = atom_get_max_pstate, | 1545 | .get_max_physical = atom_get_max_pstate, |
@@ -1561,14 +1553,6 @@ static const struct cpu_defaults silvermont_params = { | |||
1561 | }; | 1553 | }; |
1562 | 1554 | ||
1563 | static const struct cpu_defaults airmont_params = { | 1555 | static const struct cpu_defaults airmont_params = { |
1564 | .pid_policy = { | ||
1565 | .sample_rate_ms = 10, | ||
1566 | .deadband = 0, | ||
1567 | .setpoint = 60, | ||
1568 | .p_gain_pct = 14, | ||
1569 | .d_gain_pct = 0, | ||
1570 | .i_gain_pct = 4, | ||
1571 | }, | ||
1572 | .funcs = { | 1556 | .funcs = { |
1573 | .get_max = atom_get_max_pstate, | 1557 | .get_max = atom_get_max_pstate, |
1574 | .get_max_physical = atom_get_max_pstate, | 1558 | .get_max_physical = atom_get_max_pstate, |
@@ -1602,14 +1586,6 @@ static const struct cpu_defaults knl_params = { | |||
1602 | }; | 1586 | }; |
1603 | 1587 | ||
1604 | static const struct cpu_defaults bxt_params = { | 1588 | static const struct cpu_defaults bxt_params = { |
1605 | .pid_policy = { | ||
1606 | .sample_rate_ms = 10, | ||
1607 | .deadband = 0, | ||
1608 | .setpoint = 60, | ||
1609 | .p_gain_pct = 14, | ||
1610 | .d_gain_pct = 0, | ||
1611 | .i_gain_pct = 4, | ||
1612 | }, | ||
1613 | .funcs = { | 1589 | .funcs = { |
1614 | .get_max = core_get_max_pstate, | 1590 | .get_max = core_get_max_pstate, |
1615 | .get_max_physical = core_get_max_pstate_physical, | 1591 | .get_max_physical = core_get_max_pstate_physical, |
@@ -2637,9 +2613,9 @@ static int __init intel_pstate_init(void) | |||
2637 | return -ENODEV; | 2613 | return -ENODEV; |
2638 | 2614 | ||
2639 | cpu_def = (struct cpu_defaults *)id->driver_data; | 2615 | cpu_def = (struct cpu_defaults *)id->driver_data; |
2640 | |||
2641 | copy_pid_params(&cpu_def->pid_policy); | ||
2642 | copy_cpu_funcs(&cpu_def->funcs); | 2616 | copy_cpu_funcs(&cpu_def->funcs); |
2617 | if (pstate_funcs.get_target_pstate == get_target_pstate_use_performance) | ||
2618 | copy_pid_params(&cpu_def->pid_policy); | ||
2643 | } | 2619 | } |
2644 | 2620 | ||
2645 | if (intel_pstate_msrs_not_valid()) | 2621 | if (intel_pstate_msrs_not_valid()) |