]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/arm/kernel/vmlinux.lds.S
ARM: 7289/1: vmlinux.lds.S: do not hardcode cacheline size as 32 bytes
[karo-tx-linux.git] / arch / arm / kernel / vmlinux.lds.S
index f76e75548670e97eeac9112a8e48b53e37f9cc91..1077e4ff6f3cf263b96cd0fb96230319417972dd 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <asm-generic/vmlinux.lds.h>
+#include <asm/cache.h>
 #include <asm/thread_info.h>
 #include <asm/memory.h>
 #include <asm/page.h>
@@ -181,7 +182,7 @@ SECTIONS
        }
 #endif
 
-       PERCPU_SECTION(32)
+       PERCPU_SECTION(L1_CACHE_BYTES)
 
 #ifdef CONFIG_XIP_KERNEL
        __data_loc = ALIGN(4);          /* location in binary */
@@ -212,8 +213,8 @@ SECTIONS
 #endif
 
                NOSAVE_DATA
-               CACHELINE_ALIGNED_DATA(32)
-               READ_MOSTLY_DATA(32)
+               CACHELINE_ALIGNED_DATA(L1_CACHE_BYTES)
+               READ_MOSTLY_DATA(L1_CACHE_BYTES)
 
                /*
                 * The exception fixup table (might need resorting at runtime)