From ef116a6e632522def7493921666c3241318ce100 Mon Sep 17 00:00:00 2001 From: Sourab Gupta Date: Thu, 15 Feb 2018 15:23:52 +0530 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1657994 Reviewed-by: Deepak Nibade GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 1 + 1 file changed, 1 insertion(+) 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 { struct gk20a *g; int id; /* ch or tsg */ + int pid; u32 event_id; bool event_posted; -- cgit v1.2.2