Documentation: amd-pstate: introduce new global sysfs attributes
authorPerry Yuan <perry.yuan@amd.com>
Tue, 31 Jan 2023 09:00:16 +0000 (17:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Feb 2023 20:59:42 +0000 (21:59 +0100)
commitb9e6a2d47b2565eb450d3ee900fba49cc9b25cbd
tree47b22aefaee9102e1e994b09305dcb89bc023bb9
parent3ec32b6d17c5b229c6f5d05849932af1f0c6f523
Documentation: amd-pstate: introduce new global sysfs attributes

The amd-pstate driver supports switching working modes at runtime.
Users can view and change modes by interacting with the "status" sysfs
attribute.

1) check driver mode:
$ cat /sys/devices/system/cpu/amd-pstate/status

2) switch mode:
`# echo "passive" | sudo tee /sys/devices/system/cpu/amd-pstate/status`
or
`# echo "active" | sudo tee /sys/devices/system/cpu/amd-pstate/status`

Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Wyes Karny <wyes.karny@amd.com>
Tested-by: Wyes Karny <wyes.karny@amd.com>
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/pm/amd-pstate.rst