]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Remove in_interrupt() usage in gfx_v9_0_kiq_read_clock()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 9 Feb 2021 12:44:38 +0000 (13:44 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 03:28:04 +0000 (23:28 -0400)
commit026e6be25b21bf4ac80c4d1d19a2bec45f0561f5
tree1e0387deb2401d9cd7448bfaa81e0cc3468eeb5b
parentabc0ffeae294ae8cf954b30e468ad921dba26675
drm/amdgpu: Remove in_interrupt() usage in gfx_v9_0_kiq_read_clock()

gfx_v9_0_get_gpu_clock_counter() acquires a mutex_t lock and is the only
caller of gfx_v9_0_kiq_read_clock().
If it safe to acquire a mutex_t then gfx_v9_0_get_gpu_clock_counter() is
always invoked from preemptible context.

Remove in_interrupt() because it superfluous as it will always return
false.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c