Commit b78f8c8
cpufreq/amd-pstate: Remove the cppc_state check in offline/online functions
Only amd_pstate_epp driver (i.e. cppc_state = ACTIVE) enters the
amd_pstate_epp_offline() and amd_pstate_epp_cpu_online() functions,
so remove the unnecessary if condition checking if cppc_state is
equal to AMD_PSTATE_ACTIVE.
Signed-off-by: Dhananjay Ugwekar <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Reviewed-by: Gautham R. Shenoy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mario Limonciello <[email protected]>1 parent b1089e0 commit b78f8c8
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1651 | 1651 | | |
1652 | 1652 | | |
1653 | 1653 | | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
| 1654 | + | |
| 1655 | + | |
1658 | 1656 | | |
1659 | 1657 | | |
1660 | 1658 | | |
| |||
1683 | 1681 | | |
1684 | 1682 | | |
1685 | 1683 | | |
1686 | | - | |
1687 | | - | |
| 1684 | + | |
1688 | 1685 | | |
1689 | 1686 | | |
1690 | 1687 | | |
| |||
0 commit comments