Home | History | Annotate | Download | only in asm-generic
      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  ****************************************************************************
     11  ****************************************************************************/
     12 #ifndef _ASM_GENERIC_PERCPU_H_
     13 #define _ASM_GENERIC_PERCPU_H_
     14 #include <linux/compiler.h>
     15 
     16 #define __GENERIC_PER_CPU
     17 
     18 #define DEFINE_PER_CPU(type, name)   __typeof__(type) per_cpu__##name
     19 
     20 #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu__##var))
     21 #define __get_cpu_var(var) per_cpu__##var
     22 #define __raw_get_cpu_var(var) per_cpu__##var
     23 
     24 #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name
     25 
     26 #define EXPORT_PER_CPU_SYMBOL(var) EXPORT_SYMBOL(per_cpu__##var)
     27 #define EXPORT_PER_CPU_SYMBOL_GPL(var) EXPORT_SYMBOL_GPL(per_cpu__##var)
     28 
     29 #endif
     30