Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef __LINUX_CACHE_H
     20 #define __LINUX_CACHE_H
     21 #include <linux/kernel.h>
     22 #include <asm/cache.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #ifndef L1_CACHE_ALIGN
     25 #define L1_CACHE_ALIGN(x) ALIGN(x, L1_CACHE_BYTES)
     26 #endif
     27 #ifndef SMP_CACHE_BYTES
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define SMP_CACHE_BYTES L1_CACHE_BYTES
     30 #endif
     31 #ifndef __read_mostly
     32 #define __read_mostly
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #endif
     35 #ifndef ____cacheline_aligned
     36 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
     37 #endif
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #ifndef ____cacheline_aligned_in_smp
     40 #define ____cacheline_aligned_in_smp
     41 #endif
     42 #ifndef __cacheline_aligned
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define __cacheline_aligned   __attribute__((__aligned__(SMP_CACHE_BYTES),   __section__(".data.cacheline_aligned")))
     45 #endif
     46 #ifndef __cacheline_aligned_in_smp
     47 #define __cacheline_aligned_in_smp
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #endif
     50 #ifndef INTERNODE_CACHE_SHIFT
     51 #define INTERNODE_CACHE_SHIFT L1_CACHE_SHIFT
     52 #endif
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #ifndef ____cacheline_internodealigned_in_smp
     55 #define ____cacheline_internodealigned_in_smp
     56 #endif
     57 #endif
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59