diff options
author | Sourab Gupta <sourabg@nvidia.com> | 2018-02-15 04:53:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-03 01:09:34 -0500 |
commit | ef116a6e632522def7493921666c3241318ce100 (patch) | |
tree | c89f28ac819f637b554f191da2f6a0fd8d75253e | |
parent | 37a15ce818244ec11dbe002350d013cb636e0a9d (diff) |
gpu: nvgpu: add pid field to gk20a_event_id_data
QNX is going to reuse the 'struct gk20a_event_id_data' data structure
for its event handling. Contrary to linux which works on fd polling,
QNX needs the information about the pid to find out which process to
deliver the event to.
The patch adds the requisite field.
Change-Id: I466e9cfaacb921c6e1c41bd92c66194b81fc6774
Signed-off-by: Sourab Gupta <sourabg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1657994
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 438002e4..f97dbb26 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -90,6 +90,7 @@ struct gk20a_event_id_data { | |||
90 | struct gk20a *g; | 90 | struct gk20a *g; |
91 | 91 | ||
92 | int id; /* ch or tsg */ | 92 | int id; /* ch or tsg */ |
93 | int pid; | ||
93 | u32 event_id; | 94 | u32 event_id; |
94 | 95 | ||
95 | bool event_posted; | 96 | bool event_posted; |