On Wed, Dec 18, 2013 at 11:14:36AM +0100, Lars-Peter Clausen wrote:
On 12/18/2013 12:03 PM, Mark Brown wrote:
I worry about what this'd do on a multiplatform kernel - it seems unlikely that someone has a pool with the same name but that sounds like famous last words. Nothing in mainline does though so...
The sram_get_gpool() function is mmp2 specific. It basically iterates a list
It is? That's an unfortunate name then.
of available pools. Those pools are registered by mmp2 platform code. So on a multiplatform kernel not booting mmp2 it will always return NULL since no pools have been registered.
Yes, and like I say there's no non-MMP references to the string asram either. It seems viable to do things this way, though we need to get the generic interface sorted before too many other platforms get the same idea.