diff options
author | Mark Brown <broonie@kernel.org> | 2020-03-11 21:45:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-03-11 21:45:26 +0300 |
commit | 4d90a4e677c5c45c787a774c84442e75c7ddd5be (patch) | |
tree | 50312d13362dd49615148661ae7e6d91ac349719 /drivers/gpu/drm/panfrost/panfrost_gem.h | |
parent | 9032cdd96a2d4b0ef2f43499328f8a68050be2ec (diff) | |
parent | 2c523b344dfa65a3738e7039832044aa133c75fb (diff) | |
download | linux-4d90a4e677c5c45c787a774c84442e75c7ddd5be.tar.xz |
Merge tag 'v5.6-rc5' into asoc-5.7
Linux 5.6-rc5
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_gem.h')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_gem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_gem.h b/drivers/gpu/drm/panfrost/panfrost_gem.h index ca1bc9019600..b3517ff9630c 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gem.h +++ b/drivers/gpu/drm/panfrost/panfrost_gem.h @@ -30,6 +30,12 @@ struct panfrost_gem_object { struct mutex lock; } mappings; + /* + * Count the number of jobs referencing this BO so we don't let the + * shrinker reclaim this object prematurely. + */ + atomic_t gpu_usecount; + bool noexec :1; bool is_heap :1; }; |