git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add delay-init quirk for Corsair K70 RGB keyboards
[pandora-kernel.git]
/
include
/
linux
/
kmalloc_sizes.h
diff --git
a/include/linux/kmalloc_sizes.h
b/include/linux/kmalloc_sizes.h
index
bda23e0
..
e576b84
100644
(file)
--- a/
include/linux/kmalloc_sizes.h
+++ b/
include/linux/kmalloc_sizes.h
@@
-19,17
+19,27
@@
CACHE(32768)
CACHE(65536)
CACHE(131072)
CACHE(32768)
CACHE(65536)
CACHE(131072)
-#if
(NR_CPUS > 512) || (MAX_NUMNODES > 256) || !defined(CONFIG_MMU)
+#if
KMALLOC_MAX_SIZE >= 262144
CACHE(262144)
#endif
CACHE(262144)
#endif
-#if
ndef CONFIG_MMU
+#if
KMALLOC_MAX_SIZE >= 524288
CACHE(524288)
CACHE(524288)
+#endif
+#if KMALLOC_MAX_SIZE >= 1048576
CACHE(1048576)
CACHE(1048576)
-#ifdef CONFIG_LARGE_ALLOCS
+#endif
+#if KMALLOC_MAX_SIZE >= 2097152
CACHE(2097152)
CACHE(2097152)
+#endif
+#if KMALLOC_MAX_SIZE >= 4194304
CACHE(4194304)
CACHE(4194304)
+#endif
+#if KMALLOC_MAX_SIZE >= 8388608
CACHE(8388608)
CACHE(8388608)
+#endif
+#if KMALLOC_MAX_SIZE >= 16777216
CACHE(16777216)
CACHE(16777216)
+#endif
+#if KMALLOC_MAX_SIZE >= 33554432
CACHE(33554432)
CACHE(33554432)
-#endif /* CONFIG_LARGE_ALLOCS */
-#endif /* CONFIG_MMU */
+#endif