amery/linux-allwinner — pull request #36 by davidgiven (2012-06-07 21:48:48+00:00)
Title: Reserve memory only when needed (mark 2)

See: https://github.com/amery/linux-allwinner/issues/18

This is quite a lot cleaner; using #if...#endif is unavoidable, I'm afraid, but now there's only one block per case and it's much better laid out.

Because I think the pull request is going to show the various commits that make it up separately, which makes it a bit hard to follow, the overall diff against upstream is here:

https://github.com/davidgiven/linux-allwinner/compare/amery:allwinner-v3.0-android-v2...davidgiven:dg-memory