File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -10298,13 +10298,18 @@ static int dytc_cql_command(int command, int *output)
10298
10298
static int dytc_profile_set (struct platform_profile_handler * pprof ,
10299
10299
enum platform_profile_option profile )
10300
10300
{
10301
+ int perfmode ;
10301
10302
int output ;
10302
10303
int err ;
10303
10304
10304
10305
err = mutex_lock_interruptible (& dytc_mutex );
10305
10306
if (err )
10306
10307
return err ;
10307
10308
10309
+ err = convert_profile_to_dytc (profile , & perfmode );
10310
+ if (err )
10311
+ goto unlock ;
10312
+
10308
10313
if (dytc_profile_available == DYTC_FUNCMODE_MMC ) {
10309
10314
if (profile == PLATFORM_PROFILE_BALANCED ) {
10310
10315
/*
@@ -10317,12 +10322,6 @@ static int dytc_profile_set(struct platform_profile_handler *pprof,
10317
10322
if (err )
10318
10323
goto unlock ;
10319
10324
} else {
10320
- int perfmode ;
10321
-
10322
- err = convert_profile_to_dytc (profile , & perfmode );
10323
- if (err )
10324
- goto unlock ;
10325
-
10326
10325
/* Determine if we are in CQL mode. This alters the commands we do */
10327
10326
err = dytc_cql_command (DYTC_SET_COMMAND (DYTC_FUNCTION_MMC , perfmode , 1 ),
10328
10327
& output );
@@ -10331,12 +10330,6 @@ static int dytc_profile_set(struct platform_profile_handler *pprof,
10331
10330
}
10332
10331
}
10333
10332
if (dytc_profile_available == DYTC_FUNCMODE_PSC ) {
10334
- int perfmode ;
10335
-
10336
- err = convert_profile_to_dytc (profile , & perfmode );
10337
- if (err )
10338
- goto unlock ;
10339
-
10340
10333
err = dytc_command (DYTC_SET_COMMAND (DYTC_FUNCTION_PSC , perfmode , 1 ), & output );
10341
10334
if (err )
10342
10335
goto unlock ;
You can’t perform that action at this time.
0 commit comments