mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: move channel_sync_gk20a.* to common directory
1) Move channel_sync_gk20a.* from gk20a/ to common/ directory as they donot program any hardware registers. Also as an add-on rename channel_sync_gk20a.* to channel_sync.* and update the headers in required files. 2) Rename the struct gk20a_channel_sync to struct nvgpu_channel_sync. Also, corresponding syncpt and semaphore versions of the struct alongwith related methods are renamed by removing "gk20a" from their names and adding "nvgpu". 3) Add misra-c cleanups Jira NVGPU-1086 Change-Id: I4e0e21803ca3858dd7a5fc4d2454dba1f1bfcecd Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1812594 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
8381eeea4f
commit
2517d59be2
@@ -35,11 +35,11 @@
|
||||
#include <nvgpu/nvhost.h>
|
||||
#include <nvgpu/os_sched.h>
|
||||
#include <nvgpu/channel.h>
|
||||
#include <nvgpu/channel_sync.h>
|
||||
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/dbg_gpu_gk20a.h"
|
||||
#include "gk20a/fence_gk20a.h"
|
||||
#include "gk20a/channel_sync_gk20a.h"
|
||||
|
||||
#include "platform_gk20a.h"
|
||||
#include "ioctl_channel.h"
|
||||
@@ -1028,7 +1028,7 @@ static int nvgpu_ioctl_channel_get_user_syncpoint(struct channel_gk20a *ch,
|
||||
if (ch->user_sync) {
|
||||
nvgpu_mutex_release(&ch->sync_lock);
|
||||
} else {
|
||||
ch->user_sync = gk20a_channel_sync_create(ch, true);
|
||||
ch->user_sync = nvgpu_channel_sync_create(ch, true);
|
||||
if (!ch->user_sync) {
|
||||
nvgpu_mutex_release(&ch->sync_lock);
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user