]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: OMAP2xxx: PM: enter WFI via inline asm if CORE stays active
authorPaul Walmsley <paul@pwsan.com>
Sun, 30 Dec 2012 17:15:48 +0000 (10:15 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 6 Feb 2013 20:48:14 +0000 (13:48 -0700)
commit088e8806c411f76216002a8b37c7eb8563614822
treebb6a6096a73515e6223a5dba9be7aa17d13b91bc
parent88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7
ARM: OMAP2xxx: PM: enter WFI via inline asm if CORE stays active

There shouldn't be any need to jump to SRAM code if the OMAP CORE
clockdomain (and consequently the SDRAM controller and CORE PLL) stays
active during MPU WFI.  The SRAM code should only be needed when the RAM
enters self-refresh.  So in the case where CORE stays active, just call
WFI directly from the mach-omap2/pm24xx.c code.  This removes some
unnecessary SRAM code.

This second version replaces the inline WFI with the corresponding
coprocessor register call, using tlbflush.h as an example.  This is
because the assembler doesn't recognize WFI as a valid ARMv6
instruction.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm24xx.c
arch/arm/mach-omap2/sleep24xx.S