backporting msm/kgsl updates from codeaurora msm-3.4 - part 5
______________
msm: kgsl: Assign a valid context only after one has been restored

Assign a context active context only after that context has been
restored. This is required because Code section to change
pagetables or flush tlb in stream require a valid context to be
active.

Change-Id: I513cf235adf2bde04af47944950d58ba1af1f61f
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
____________

msm: kgsl: Make tlb flags common for all MMU types

Remove tlb flags variable from gpu MMU specific structure and
declare it in common MMU structure since it can be used by both
MMU types i.e GPUMMU and IOMMU

Change-Id: Ia8bea65bc9acf257dc1277c98cd358963c291fd7
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
_______________

msm: kgsl: Change the prototype of MMU function pointers

Change the prototype of the MMU function pointers to take the mmu
pointer as an argument instead of the device pointer.

Change-Id: I4ecafefcc8f755c23dac6e3a15a1a74a74e3db00
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>