davinci: Kconfig: enable EVMs by default when SoCs are enabled
[linux-ginger.git] / include / linux / slob_def.h
blobbb5368df4be84397f28ec90b134b63687fdcaed6
1 #ifndef __LINUX_SLOB_DEF_H
2 #define __LINUX_SLOB_DEF_H
4 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
6 static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep,
7 gfp_t flags)
9 return kmem_cache_alloc_node(cachep, flags, -1);
12 void *__kmalloc_node(size_t size, gfp_t flags, int node);
14 static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
16 return __kmalloc_node(size, flags, node);
19 /**
20 * kmalloc - allocate memory
21 * @size: how many bytes of memory are required.
22 * @flags: the type of memory to allocate (see kcalloc).
24 * kmalloc is the normal method of allocating memory
25 * in the kernel.
27 static __always_inline void *kmalloc(size_t size, gfp_t flags)
29 return __kmalloc_node(size, flags, -1);
32 static __always_inline void *__kmalloc(size_t size, gfp_t flags)
34 return kmalloc(size, flags);
37 static inline void kmem_cache_init_late(void)
39 /* Nothing to do */
42 #endif /* __LINUX_SLOB_DEF_H */