msm: Forward-port Samsung's ramdump extensions

 * Port forward from the stock kernel source.
 * Necessary for debugging, no impact if disabled.

Change-Id: Iddad6c08a182f3207e4579712eb24cffc34ee898