4 #ifdef CONFIG_HAVE_SRAM_POOL
6 #include <linux/spinlock.h>
7 #include <linux/genalloc.h>
9 /* arch/sh/mm/sram.c */
10 extern struct gen_pool
*sram_pool
;
12 static inline unsigned long sram_alloc(size_t len
)
17 return gen_pool_alloc(sram_pool
, len
);
20 static inline void sram_free(unsigned long addr
, size_t len
)
22 return gen_pool_free(sram_pool
, addr
, len
);
27 static inline unsigned long sram_alloc(size_t len
)
32 static inline void sram_free(unsigned long addr
, size_t len
)
36 #endif /* CONFIG_HAVE_SRAM_POOL */
38 #endif /* __ASM_SRAM_H */