File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -922,14 +922,6 @@ static void intel_pstate_hwp_set(struct cpufreq_policy *policy)
922
922
}
923
923
}
924
924
925
- static int intel_pstate_hwp_set_policy (struct cpufreq_policy * policy )
926
- {
927
- if (hwp_active )
928
- intel_pstate_hwp_set (policy );
929
-
930
- return 0 ;
931
- }
932
-
933
925
static int intel_pstate_hwp_save_state (struct cpufreq_policy * policy )
934
926
{
935
927
struct cpudata * cpu_data = all_cpu_data [policy -> cpu ];
@@ -944,20 +936,17 @@ static int intel_pstate_hwp_save_state(struct cpufreq_policy *policy)
944
936
945
937
static int intel_pstate_resume (struct cpufreq_policy * policy )
946
938
{
947
- int ret ;
948
-
949
939
if (!hwp_active )
950
940
return 0 ;
951
941
952
942
mutex_lock (& intel_pstate_limits_lock );
953
943
954
944
all_cpu_data [policy -> cpu ]-> epp_policy = 0 ;
955
-
956
- ret = intel_pstate_hwp_set_policy (policy );
945
+ intel_pstate_hwp_set (policy );
957
946
958
947
mutex_unlock (& intel_pstate_limits_lock );
959
948
960
- return ret ;
949
+ return 0 ;
961
950
}
962
951
963
952
static void intel_pstate_update_policies (void )
@@ -2130,7 +2119,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
2130
2119
2131
2120
intel_pstate_set_update_util_hook (policy -> cpu );
2132
2121
2133
- intel_pstate_hwp_set_policy (policy );
2122
+ if (hwp_active )
2123
+ intel_pstate_hwp_set (policy );
2134
2124
2135
2125
mutex_unlock (& intel_pstate_limits_lock );
2136
2126
You can’t perform that action at this time.
0 commit comments