Recent RAM bar implementation pulled from AOKP.

Change-Id: Ibc1eba99a95a7d21aed99e8a065db54d0c530792