mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 14:02:06 -04:00
drm/amd/pm: revise the performance level setting APIs
Avoid cross callings which make lock protection enforcement on amdgpu_dpm_force_performance_level() impossible. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -268,7 +268,6 @@ enum amd_dpm_forced_level;
|
||||
* @set_clockgating_state: enable/disable cg for the IP block
|
||||
* @set_powergating_state: enable/disable pg for the IP block
|
||||
* @get_clockgating_state: get current clockgating status
|
||||
* @enable_umd_pstate: enable UMD powerstate
|
||||
*
|
||||
* These hooks provide an interface for controlling the operational state
|
||||
* of IP blocks. After acquiring a list of IP blocks for the GPU in use,
|
||||
@@ -299,7 +298,6 @@ struct amd_ip_funcs {
|
||||
int (*set_powergating_state)(void *handle,
|
||||
enum amd_powergating_state state);
|
||||
void (*get_clockgating_state)(void *handle, u32 *flags);
|
||||
int (*enable_umd_pstate)(void *handle, enum amd_dpm_forced_level *level);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user