Skip to content

Commit

Permalink
ARMv7: enable L2 cache in proc_init
Browse files Browse the repository at this point in the history
Since the L2 cache is disabled in proc_fin (see 56a92a3), it needs to be
enabled in proc_init when recovering from a kexec(). Without this, it will
remain disabled until cpuidle fixes it up during a transition, which could
be long after boot.

Signed-off-by: Richard Braakman <richard.braakman@jollamobile.com>
  • Loading branch information
amtep committed Dec 5, 2012
1 parent 1cce214 commit 994b4b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mm/proc-v7.S
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#endif

ENTRY(cpu_v7_proc_init)
mrc p15, 0, r0, c1, c0, 1 @ aux ctrl register
orr r0, r0, #0x2 @ L2EN
mcr p15, 0, r0, c1, c0, 1 @ enable L2 cache

mov pc, lr
ENDPROC(cpu_v7_proc_init)

Expand Down

0 comments on commit 994b4b2

Please sign in to comment.