ARM: 6436/1: AT91: Fix power-saving in idle-mode on 926T processors
authorAnders Larsen <al@alarsen.net>
Thu, 7 Oct 2010 19:44:15 +0000 (20:44 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 8 Oct 2010 09:00:36 +0000 (10:00 +0100)
commit5c189208b606a85b4e97109af70d59f10a42fdfd
treea39e52ce6cb5d2f0ef1e9b4df50097f2574c2fc8
parentcdaf9a2f280b25dd2fb1e04da5d3899411766e1b
ARM: 6436/1: AT91: Fix power-saving in idle-mode on 926T processors

According to Atmel, their 926T processors (AT91 post RM9200) requires
'Wait for Interrupt' mode be entered right after disabling the processor clock
in order to minimise current consumption when idle, so do both provided we're
not running on a 920T (an RM9200).

Furthermore, get rid of the #ifndef CONFIG_DEBUG_KERNEL, since arch_idle()
can be turned off completely with the kernel parameter 'nohlt'.

Cc: Andrew Victor <avictor.za@gmail.com>
Signed-off-by: Anders Larsen <al@alarsen.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-at91/include/mach/system.h