diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_allocator.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_allocator.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_allocator.h b/drivers/gpu/nvgpu/gk20a/gk20a_allocator.h index 93865190..0d611ba3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_allocator.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a_allocator.h | |||
@@ -165,6 +165,15 @@ int gk20a_page_allocator_init(struct gk20a_allocator *__a, | |||
165 | const char *name, u64 base, u64 length, | 165 | const char *name, u64 base, u64 length, |
166 | u64 blk_size, u64 flags); | 166 | u64 blk_size, u64 flags); |
167 | 167 | ||
168 | /* | ||
169 | * Lockless allocatior initializers. | ||
170 | * Note: This allocator can only allocate fixed-size structures of a | ||
171 | * pre-defined size. | ||
172 | */ | ||
173 | int gk20a_lockless_allocator_init(struct gk20a_allocator *__a, | ||
174 | const char *name, u64 base, u64 length, | ||
175 | u64 struct_size, u64 flags); | ||
176 | |||
168 | #define GPU_BALLOC_MAX_ORDER 31 | 177 | #define GPU_BALLOC_MAX_ORDER 31 |
169 | 178 | ||
170 | /* | 179 | /* |