pub enum PerformanceLevel {
Auto,
Low,
High,
Manual,
}
Expand description
Performance level to be used by the GPU.
https://kernel.org/doc/html/latest/gpu/amdgpu/thermal.html#pp-od-clk-voltage
Variants§
Auto
When auto is selected, the driver will attempt to dynamically select the optimal power profile for current conditions in the driver.
Low
When low is selected, the clocks are forced to the lowest power state.
High
When high is selected, the clocks are forced to the highest power state.
Manual
When manual is selected, power states can be manually adjusted via pp_dpm_*
files (GpuHandle::set_enabled_power_levels
) and pp_od_clk_voltage
(GpuHandle::set_clocks_table
).
Trait Implementations§
Source§impl Clone for PerformanceLevel
impl Clone for PerformanceLevel
Source§fn clone(&self) -> PerformanceLevel
fn clone(&self) -> PerformanceLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PerformanceLevel
impl Debug for PerformanceLevel
Source§impl Default for PerformanceLevel
impl Default for PerformanceLevel
Source§fn default() -> PerformanceLevel
fn default() -> PerformanceLevel
Returns the “default value” for a type. Read more
Source§impl Display for PerformanceLevel
impl Display for PerformanceLevel
Source§impl FromStr for PerformanceLevel
impl FromStr for PerformanceLevel
Source§impl PartialEq for PerformanceLevel
impl PartialEq for PerformanceLevel
impl Copy for PerformanceLevel
impl Eq for PerformanceLevel
impl StructuralPartialEq for PerformanceLevel
Auto Trait Implementations§
impl Freeze for PerformanceLevel
impl RefUnwindSafe for PerformanceLevel
impl Send for PerformanceLevel
impl Sync for PerformanceLevel
impl Unpin for PerformanceLevel
impl UnwindSafe for PerformanceLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more