mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: prepare pmu mutexes unit
PMU mutexes used by FIFO and runlists is functionality independent of the PMU command and message management. Remove related functionality from pmu_ipc.c and prepare pmu_mutex.c. Prepare PMU HAL unit that contains gk20a specific PMU mutexes handling. JIRA NVGPU-1970 Change-Id: I0204be2ef9d2c000004667af3c18dc527d7ac25f Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2079142 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
499da418c1
commit
9a55ecb5d2
@@ -295,7 +295,7 @@ int nvgpu_engine_disable_activity(struct gk20a *g,
|
||||
}
|
||||
|
||||
if (g->ops.pmu.is_pmu_supported(g)) {
|
||||
mutex_ret = nvgpu_pmu_mutex_acquire(&g->pmu,
|
||||
mutex_ret = nvgpu_pmu_lock_acquire(g, &g->pmu,
|
||||
PMU_MUTEX_ID_FIFO, &token);
|
||||
}
|
||||
|
||||
@@ -348,7 +348,7 @@ int nvgpu_engine_disable_activity(struct gk20a *g,
|
||||
|
||||
clean_up:
|
||||
if (mutex_ret == 0) {
|
||||
nvgpu_pmu_mutex_release(&g->pmu, PMU_MUTEX_ID_FIFO, &token);
|
||||
nvgpu_pmu_lock_release(g, &g->pmu, PMU_MUTEX_ID_FIFO, &token);
|
||||
}
|
||||
|
||||
if (err != 0) {
|
||||
|
||||
Reference in New Issue
Block a user