Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191724
b: refs/heads/master
c: aec9562
h: refs/heads/master
v: v3
  • Loading branch information
Anders Larsen authored and Russell King committed May 2, 2010
1 parent 7c7e4a8 commit ffd4e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2941054ed596dd67a6094b7aca165af1b1f9926
refs/heads/master: aec9562f3db8ece218125042e0b2b7ac5b7091e7
7 changes: 5 additions & 2 deletions trunk/arch/arm/mach-at91/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,24 @@
#include <mach/hardware.h>
#include <mach/at91_st.h>
#include <mach/at91_dbgu.h>
#include <mach/at91_pmc.h>

static inline void arch_idle(void)
{
#ifndef CONFIG_DEBUG_KERNEL
/*
* Disable the processor clock. The processor will be automatically
* re-enabled by an interrupt or by a reset.
*/
// at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK);

at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK);
#else
/*
* Set the processor (CP15) into 'Wait for Interrupt' mode.
* Unlike disabling the processor clock via the PMC (above)
* this allows the processor to be woken via JTAG.
*/
cpu_do_idle();
#endif
}

void (*at91_arch_reset)(void);
Expand Down

0 comments on commit ffd4e82

Please sign in to comment.