]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
OMAP3: PM: Allow the cache clean when L1 is lost.
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Sun, 23 Jan 2011 14:03:53 +0000 (19:33 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 10 Mar 2011 20:23:12 +0000 (12:23 -0800)
When L1 cache is suppose to be lost, it needs to be cleaned before
entrering to the low power mode.

While at this, also fix few comments and remove un-necessary
clean_l2 lable.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/sleep34xx.S

index a31845a201e93b5e7db153185b0f4c4bac54d615..f75a166f0a21b2ed7a276d422dc055aeb8082162 100644 (file)
@@ -188,12 +188,12 @@ ENTRY(omap34xx_cpu_suspend)
        stmfd   sp!, {r0-r12, lr}       @ save registers on stack
 
        /*
-        * r0 contains restore pointer in sdram
+        * r0 contains CPU context save/restore pointer in sdram
         * r1 contains information about saving context:
         *   0 - No context lost
         *   1 - Only L1 and logic lost
-        *   2 - Only L2 lost
-        *   3 - Both L1 and L2 lost
+        *   2 - Only L2 lost (Even L1 is retained we clean it along with L2)
+        *   3 - Both L1 and L2 lost and logic lost
         */
 
        /* Directly jump to WFI is the context save is not required */
@@ -277,15 +277,6 @@ l1_logic_lost:
        stmia   r8!, {r4}
 
 clean_caches:
-       /*
-        * Clean Data or unified cache to POU
-        * How to invalidate only L1 cache???? - #FIX_ME#
-        * mcr  p15, 0, r11, c7, c11, 1
-        */
-       cmp     r1, #0x1                @ Check whether L2 inval is required
-       beq     omap3_do_wfi
-
-clean_l2:
        /*
         * jump out to kernel flush routine
         *  - reuse that code is better