diff options
author | Thierry Reding <treding@nvidia.com> | 2018-05-16 14:12:33 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2018-05-18 21:50:24 +0200 |
commit | bf3d41ccabb53c57e19fcfc8b81d790043ac2bed (patch) | |
tree | 8b57d3cb9fd23f94921dfa5588998e2723eb5002 /include/linux/host1x.h | |
parent | 24c94e166dfe89839129b8e0fae208b6af60d6f1 (diff) | |
download | lwn-bf3d41ccabb53c57e19fcfc8b81d790043ac2bed.tar.gz lwn-bf3d41ccabb53c57e19fcfc8b81d790043ac2bed.zip |
gpu: host1x: Store pointer to client in jobs
Rather than storing some identifier derived from the application
context that can't be used concretely anywhere, store a pointer to the
client directly so that accesses can be made directly through that
client object.
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/linux/host1x.h')
-rw-r--r-- | include/linux/host1x.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index f66bece1e1b7..0632010f47fb 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -202,7 +202,8 @@ struct host1x_job { /* Channel where job is submitted to */ struct host1x_channel *channel; - u32 client; + /* client where the job originated */ + struct host1x_client *client; /* Gathers and their memory */ struct host1x_job_gather *gathers; |