projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8b8b0d
)
drm/ttm: make global mutex and use count static
author
Christian König
<christian.koenig@amd.com>
Mon, 15 Feb 2021 15:17:26 +0000
(16:17 +0100)
committer
Christian König
<christian.koenig@amd.com>
Fri, 9 Apr 2021 13:26:27 +0000
(15:26 +0200)
Only needed during device hot plug and remove and not exported.
Signed-off-by: Christian König <christian.koenig@amd.com>
Suggested-by: Bernard <bernard@vivo.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20210409110730.2958-1-christian.koenig@amd.com
drivers/gpu/drm/ttm/ttm_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_device.c
b/drivers/gpu/drm/ttm/ttm_device.c
index 9b787b3caeb502f184a0f59526a05ed232a496a4..1f2024164d722699717c4603d0307ab96dc55338 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_device.c
+++ b/
drivers/gpu/drm/ttm/ttm_device.c
@@
-39,8
+39,8
@@
/**
* ttm_global_mutex - protecting the global state
*/
-DEFINE_MUTEX(ttm_global_mutex);
-unsigned ttm_glob_use_count;
+
static
DEFINE_MUTEX(ttm_global_mutex);
+
static
unsigned ttm_glob_use_count;
struct ttm_global ttm_glob;
EXPORT_SYMBOL(ttm_glob);