summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h')
-rw-r--r--drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h b/drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h
index 9802b9db..95780202 100644
--- a/drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h
+++ b/drivers/gpu/nvgpu/common/mm/bitmap_allocator_priv.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -19,6 +19,8 @@
19 19
20#include <linux/rbtree.h> 20#include <linux/rbtree.h>
21 21
22#include <nvgpu/kmem.h>
23
22struct nvgpu_allocator; 24struct nvgpu_allocator;
23 25
24struct nvgpu_bitmap_allocator { 26struct nvgpu_bitmap_allocator {
@@ -43,6 +45,8 @@ struct nvgpu_bitmap_allocator {
43 unsigned long *bitmap; /* The actual bitmap! */ 45 unsigned long *bitmap; /* The actual bitmap! */
44 struct rb_root allocs; /* Tree of outstanding allocations. */ 46 struct rb_root allocs; /* Tree of outstanding allocations. */
45 47
48 struct nvgpu_kmem_cache *meta_data_cache;
49
46 u64 flags; 50 u64 flags;
47 51
48 bool inited; 52 bool inited;