drm/amd/powerplay: Fix psm_set_user_performance_state()
authorTom St Denis <tom.stdenis@amd.com>
Tue, 5 Sep 2017 11:55:48 +0000 (07:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:23:18 +0000 (14:23 -0400)
commit64d03abe6ee36ec48e997743e9397ae160eb508a
treed8070fd7b1d40fa8f9091adbd99e4712a7a7b9cf
parenta216ab09955d6b77f3af4f0aba9255c5ddf382f5
drm/amd/powerplay:  Fix psm_set_user_performance_state()

We now pass a pointer to a pointer which seems to be
what they meant in the first place.  The previous version
was modifying a pointer passed by value.

Fixes bug that was introduced by

commit 332798d40c2e91:drm/amd/powerplay: delete eventmgr layer in poweprlay

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-By: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.h