aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCraig Stout <craig.stout@ti.com>2012-08-16 16:31:35 -0700
committerZiyan <jaraidaniel@gmail.com>2015-04-18 13:49:19 +0200
commitfdfa61d013f9b5eab9a546afcc5faedc16584909 (patch)
treec565ee9f48e9ece553f8998abb3b679eda63fa66 /include
parent5048454e9af8262f70b161bbf3bb6092b90d22f2 (diff)
downloadkernel_samsung_tuna-fdfa61d013f9b5eab9a546afcc5faedc16584909.zip
kernel_samsung_tuna-fdfa61d013f9b5eab9a546afcc5faedc16584909.tar.gz
kernel_samsung_tuna-fdfa61d013f9b5eab9a546afcc5faedc16584909.tar.bz2
cache-2dmanager: force compile fail if cache sizes not specified.
Change-Id: Iad49ef78552994e4611c1c7b79af2d38b2fb141c Signed-off-by: Craig Stout <craig.stout@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/cache-2dmanager.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/cache-2dmanager.h b/include/linux/cache-2dmanager.h
index 5ca2f51..2f452da 100644
--- a/include/linux/cache-2dmanager.h
+++ b/include/linux/cache-2dmanager.h
@@ -17,12 +17,15 @@
#include "slab.h"
-/* The value below only applies to OMAP4 */
+#ifdef CONFIG_ARCH_OMAP4
#define L1CACHE_SIZE 32768
#define L2CACHE_SIZE 1048576
#define L1THRESHOLD L1CACHE_SIZE
#define L2THRESHOLD L2CACHE_SIZE
+#else
+#error Cache configuration must be specified.
+#endif
struct c2dmrgn {
char *start; /* addr of upper left of rect */