Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322316
b: refs/heads/master
c: c944b0b
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Aug 23, 2012
1 parent 86d31e5 commit 9c4ae12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 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: 16339464c5d67d0536837fc5342c9c2432b80ae0
refs/heads/master: c944b0b9354ea06ffb0c8a7178949f1185f9f499
23 changes: 3 additions & 20 deletions trunk/arch/arm/mach-imx/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,6 @@ static inline void cpu_enter_lowpower(void)
: "cc");
}

static inline void cpu_leave_lowpower(void)
{
unsigned int v;

asm volatile(
"mrc p15, 0, %0, c1, c0, 0\n"
" orr %0, %0, %1\n"
" mcr p15, 0, %0, c1, c0, 0\n"
" mrc p15, 0, %0, c1, c0, 1\n"
" orr %0, %0, %2\n"
" mcr p15, 0, %0, c1, c0, 1\n"
: "=&r" (v)
: "Ir" (CR_C), "Ir" (0x40)
: "cc");
}

/*
* platform-specific code to shutdown a CPU
*
Expand All @@ -67,11 +51,10 @@ void platform_cpu_die(unsigned int cpu)
{
cpu_enter_lowpower();
imx_enable_cpu(cpu, false);
cpu_do_idle();
cpu_leave_lowpower();

/* We should never return from idle */
panic("cpu %d unexpectedly exit from shutdown\n", cpu);
/* spin here until hardware takes it down */
while (1)
;
}

int platform_cpu_disable(unsigned int cpu)
Expand Down

0 comments on commit 9c4ae12

Please sign in to comment.