File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -6566,7 +6566,7 @@ void Intel_Turbo_TDP_Config(CORE_RO *Core)
65666566
65676567 RDMSR (TurboActivation , MSR_TURBO_ACTIVATION_RATIO );
65686568
6569- if ((Turbo_Activation_Ratio >= 0 )
6569+ if ((! TurboActivation . Ratio_Lock ) && ( Turbo_Activation_Ratio >= 0 )
65706570 && (Turbo_Activation_Ratio != TurboActivation .MaxRatio ))
65716571 {
65726572 const short MaxRatio = \
@@ -15558,11 +15558,14 @@ static long CoreFreqK_ioctl( struct file *filp,
1555815558 CLOCK_ARG clockMod = {.sllong = arg };
1555915559 switch (clockMod .NC ) {
1556015560 case CLOCK_MOD_ACT :
15561- Controller_Stop (1 );
15562- Turbo_Activation_Ratio = clockMod .Ratio ;
15563- Controller_Start (1 );
15564- Turbo_Activation_Ratio = -1 ;
15565- rc = RC_SUCCESS ;
15561+ if (clockMod .Ratio >= 0 )
15562+ {
15563+ Controller_Stop (1 );
15564+ Turbo_Activation_Ratio = clockMod .Ratio ;
15565+ Controller_Start (1 );
15566+ Turbo_Activation_Ratio = -1 ;
15567+ rc = RC_OK_COMPUTE ;
15568+ }
1556615569 break ;
1556715570 }
1556815571 }
You can’t perform that action at this time.
0 commit comments