Skip to content

Commit

Permalink
drm/amdgpu: optimize amdgpu device attribute code
Browse files Browse the repository at this point in the history
unified amdgpu device attribute node functions:
1. add some helper functions to create amdgpu device attribute node.
2. create device node according to device attr flags on different VF mode.
3. rename some functions name to adapt a new interface.

v2:
1. remove ATTR_STATE_DEAD, ATTR_STATE_ALIVE enum.
2. rename callback function perform to attr_update.
3. modify some variable names

Signed-off-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Kevin Wang authored and Alex Deucher committed May 18, 2020
1 parent a7f2810 commit 4e01847
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 278 deletions.
Loading

0 comments on commit 4e01847

Please sign in to comment.