File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
drivers/platform/x86/amd/pmf Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf)
303
303
mode = POWER_MODE_BALANCED_POWER ;
304
304
break ;
305
305
case PLATFORM_PROFILE_LOW_POWER :
306
+ case PLATFORM_PROFILE_QUIET :
306
307
mode = POWER_MODE_POWER_SAVER ;
307
308
break ;
308
309
default :
@@ -387,6 +388,13 @@ static int amd_pmf_profile_set(struct device *dev,
387
388
return 0 ;
388
389
}
389
390
391
+ static int amd_pmf_hidden_choices (void * drvdata , unsigned long * choices )
392
+ {
393
+ set_bit (PLATFORM_PROFILE_QUIET , choices );
394
+
395
+ return 0 ;
396
+ }
397
+
390
398
static int amd_pmf_profile_probe (void * drvdata , unsigned long * choices )
391
399
{
392
400
set_bit (PLATFORM_PROFILE_LOW_POWER , choices );
@@ -398,6 +406,7 @@ static int amd_pmf_profile_probe(void *drvdata, unsigned long *choices)
398
406
399
407
static const struct platform_profile_ops amd_pmf_profile_ops = {
400
408
.probe = amd_pmf_profile_probe ,
409
+ .hidden_choices = amd_pmf_hidden_choices ,
401
410
.profile_get = amd_pmf_profile_get ,
402
411
.profile_set = amd_pmf_profile_set ,
403
412
};
You can’t perform that action at this time.
0 commit comments