3 * (C) COPYRIGHT ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
20 #include <linux/atomic.h>
21 #include <linux/mempool.h>
22 #include <linux/slab.h>
24 /* raw page handling */
25 typedef struct kbase_mem_allocator
27 atomic_t free_list_size;
28 unsigned int free_list_max_size;
29 struct mutex free_list_lock;
30 struct list_head free_list_head;
31 struct shrinker free_list_reclaimer;
32 } kbase_mem_allocator;