diff options
author | Perry Yuan <[email protected]> | 2023-01-31 17:00:12 +0800 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2023-02-03 21:59:42 +0100 |
commit | abd61c08ef349af08df0bf587d33f5bde5996a89 (patch) | |
tree | 3ce89de5eaa25b30f4f31fbe443999d969224bc1 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 50ddd2f7826927e6dc111a43b3a183f53c260fa4 (diff) |
cpufreq: amd-pstate: add driver working mode switch support
While amd-pstate driver was loaded with specific driver mode, it will
need to check which mode is enabled for the pstate driver,add this sysfs
entry to show the current status
$ cat /sys/devices/system/cpu/amd-pstate/status
active
Meanwhile, user can switch the pstate driver mode with writing mode
string to sysfs entry as below.
Enable passive mode:
$ sudo bash -c "echo passive > /sys/devices/system/cpu/amd-pstate/status"
Enable active mode (EPP driver mode):
$ sudo bash -c "echo active > /sys/devices/system/cpu/amd-pstate/status"
Acked-by: Huang Rui <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>
Reviewed-by: Wyes Karny <[email protected]>
Tested-by: Wyes Karny <[email protected]>
Signed-off-by: Perry Yuan <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions