/*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 <asm/sram.h>1213/*14* This provides a standard SRAM pool for tiny memories that can be15* added either by the CPU or the platform code. Typical SRAM sizes16* to be inserted in to the pool will generally be less than the page17* size, with anything more reasonably sized handled as a NUMA memory18* node.19*/20struct gen_pool *sram_pool;2122static int __init sram_pool_init(void)23{24/*25* This is a global pool, we don't care about node locality.26*/27sram_pool = gen_pool_create(1, -1);28if (unlikely(!sram_pool))29return -ENOMEM;3031return 0;32}33core_initcall(sram_pool_init);343536