aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kmalloc_sizes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kmalloc_sizes.h')
-rw-r--r--include/linux/kmalloc_sizes.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/kmalloc_sizes.h b/include/linux/kmalloc_sizes.h
new file mode 100644
index 000000000000..d82d4c05c12d
--- /dev/null
+++ b/include/linux/kmalloc_sizes.h
@@ -0,0 +1,33 @@
1#if (PAGE_SIZE == 4096)
2 CACHE(32)
3#endif
4 CACHE(64)
5#if L1_CACHE_BYTES < 64
6 CACHE(96)
7#endif
8 CACHE(128)
9#if L1_CACHE_BYTES < 128
10 CACHE(192)
11#endif
12 CACHE(256)
13 CACHE(512)
14 CACHE(1024)
15 CACHE(2048)
16 CACHE(4096)
17 CACHE(8192)
18 CACHE(16384)
19 CACHE(32768)
20 CACHE(65536)
21 CACHE(131072)
22#ifndef CONFIG_MMU
23 CACHE(262144)
24 CACHE(524288)
25 CACHE(1048576)
26#ifdef CONFIG_LARGE_ALLOCS
27 CACHE(2097152)
28 CACHE(4194304)
29 CACHE(8388608)
30 CACHE(16777216)
31 CACHE(33554432)
32#endif /* CONFIG_LARGE_ALLOCS */
33#endif /* CONFIG_MMU */