diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-11-22 08:57:11 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-22 20:18:56 -0500 |
commit | ba2e59dc41f593bb011e0ec58c969337a35f4cf1 (patch) | |
tree | 12a4fcec144516a0e903e5495898e9072d7db27c /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | b498f4c5c0a0a5f1a59a9210a1ee4d1d8ae98be7 (diff) |
gpu: nvgpu: use submit callback only in linux code
Move the implementation for channel job update callbacks that is based
on Linux specific work_struct usage to Linux-specific code.
This requires a bit of extra work for allocating OS-specific priv data
for channels which is also done in this patch. The priv data will be
used more when more OS-specific features are moved.
Jira NVGPU-259
Change-Id: I24bc0148a827f375b56a1c96044685affc2d1e8c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1589321
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 8d6db4c7..11a99bff 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1255,6 +1255,13 @@ struct gk20a { | |||
1255 | struct nvgpu_mutex start_lock; | 1255 | struct nvgpu_mutex start_lock; |
1256 | } channel_worker; | 1256 | } channel_worker; |
1257 | 1257 | ||
1258 | struct { | ||
1259 | void (*open)(struct channel_gk20a *ch); | ||
1260 | void (*close)(struct channel_gk20a *ch); | ||
1261 | void (*work_completion_signal)(struct channel_gk20a *ch); | ||
1262 | void (*work_completion_cancel_sync)(struct channel_gk20a *ch); | ||
1263 | } os_channel; | ||
1264 | |||
1258 | struct gk20a_scale_profile *scale_profile; | 1265 | struct gk20a_scale_profile *scale_profile; |
1259 | unsigned long last_freq; | 1266 | unsigned long last_freq; |
1260 | 1267 | ||