/*1* SRAM pool for tiny memories not otherwise managed.2*3* Copyright (C) 2010 Paul Mundt4*5* This file is subject to the terms and conditions of the GNU General Public6* License. See the file "COPYING" in the main directory of this archive7* for more details.8*/9#include <linux/init.h>10#include <linux/kernel.h>11#include <linux/errno.h>12#include <asm/sram.h>1314/*15* This provides a standard SRAM pool for tiny memories that can be16* added either by the CPU or the platform code. Typical SRAM sizes17* to be inserted in to the pool will generally be less than the page18* size, with anything more reasonably sized handled as a NUMA memory19* node.20*/21struct gen_pool *sram_pool;2223static int __init sram_pool_init(void)24{25/*26* This is a global pool, we don't care about node locality.27*/28sram_pool = gen_pool_create(1, -1);29if (unlikely(!sram_pool))30return -ENOMEM;3132return 0;33}34core_initcall(sram_pool_init);353637