diff options
Diffstat (limited to 'drivers/gpu/nvgpu/pmgr/pwrpolicy.h')
-rw-r--r-- | drivers/gpu/nvgpu/pmgr/pwrpolicy.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pmgr/pwrpolicy.h b/drivers/gpu/nvgpu/pmgr/pwrpolicy.h index 82289137..008282d3 100644 --- a/drivers/gpu/nvgpu/pmgr/pwrpolicy.h +++ b/drivers/gpu/nvgpu/pmgr/pwrpolicy.h | |||
@@ -99,10 +99,20 @@ struct pwr_policy_hw_threshold { | |||
99 | u16 low_threshold_value; | 99 | u16 low_threshold_value; |
100 | }; | 100 | }; |
101 | 101 | ||
102 | struct pwr_policy_sw_threshold { | ||
103 | struct pwr_policy_limit super; | ||
104 | u8 threshold_idx; | ||
105 | u8 low_threshold_idx; | ||
106 | bool b_use_low_threshold; | ||
107 | u16 low_threshold_value; | ||
108 | u8 event_id; | ||
109 | }; | ||
110 | |||
102 | union pwr_policy_data_union { | 111 | union pwr_policy_data_union { |
103 | struct boardobj boardobj; | 112 | struct boardobj boardobj; |
104 | struct pwr_policy pwrpolicy; | 113 | struct pwr_policy pwrpolicy; |
105 | struct pwr_policy_hw_threshold hw_threshold; | 114 | struct pwr_policy_hw_threshold hw_threshold; |
115 | struct pwr_policy_sw_threshold sw_threshold; | ||
106 | } ; | 116 | } ; |
107 | 117 | ||
108 | #define PMGR_GET_PWR_POLICY(g, policy_idx) \ | 118 | #define PMGR_GET_PWR_POLICY(g, policy_idx) \ |