drm/amdgpu/swsmu: add interrupt work function
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Oct 2020 13:03:37 +0000 (09:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 1 Oct 2020 14:43:10 +0000 (10:43 -0400)
commit1a8a763b218cef8cf881fc0d1d739283db24c167
tree890278d6fcce3be0784466fd00281f43431fd5f7
parent346dbbb8f7a0f94eb4264d1e0a253be2edca6eb8
drm/amdgpu/swsmu: add interrupt work function

So we can schedule work from interrupts.  This might include
long tasks or things that could sleep.

Fixes: e1188aacad1730 ("drm/amdgpu/smu11: add support for SMU AC/DC interrupts")
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c