Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279812
b: refs/heads/master
c: e879c86
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Nov 21, 2011
1 parent bdf6dcd commit 0615a61
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 24 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: 5aafec15bdc54cf0722696c95091d7bd674bfcad
refs/heads/master: e879c862fb81b986095ae7a4676b2281c2f97957
1 change: 1 addition & 0 deletions trunk/arch/arm/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ extern int __pure cpu_architecture(void);
extern void cpu_init(void);

void arm_machine_restart(char mode, const char *cmd);
void soft_restart(unsigned long);
extern void (*arm_pm_restart)(char str, const char *cmd);

#define UDBG_UNDEFINED (1 << 0)
Expand Down
13 changes: 11 additions & 2 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int __init hlt_setup(char *__unused)
__setup("nohlt", nohlt_setup);
__setup("hlt", hlt_setup);

void arm_machine_restart(char mode, const char *cmd)
void soft_restart(unsigned long addr)
{
/* Disable interrupts first */
local_irq_disable();
Expand All @@ -114,7 +114,16 @@ void arm_machine_restart(char mode, const char *cmd)
/* Push out any further dirty data, and ensure cache is empty */
flush_cache_all();

/* Now call the architecture specific reboot code. */
cpu_reset(addr);
}

void arm_machine_restart(char mode, const char *cmd)
{
/* Disable interrupts first */
local_irq_disable();
local_fiq_disable();

/* Call the architecture specific reboot code. */
arch_reset(mode, cmd);
}

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-clps711x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static inline void arch_idle(void)

static inline void arch_reset(char mode, const char *cmd)
{
cpu_reset(0);
soft_restart(0);
}

#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ebsa110/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ static inline void arch_idle(void)
asm volatile ("mcr p15, 0, ip, c15, c1, 2" : : : "cc");
}

#define arch_reset(mode, cmd) cpu_reset(0x80000000)
#define arch_reset(mode, cmd) soft_restart(0x80000000)

#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-footbridge/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static inline void arch_reset(char mode, const char *cmd)
/*
* Jump into the ROM
*/
cpu_reset(0x41000000);
soft_restart(0x41000000);
} else {
if (machine_is_netwinder()) {
/* open up the SuperIO chip
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-iop32x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ static inline void arch_reset(char mode, const char *cmd)
*IOP3XX_PCSR = 0x30;

/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
}
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-iop33x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ static inline void arch_reset(char mode, const char *cmd)
*IOP3XX_PCSR = 0x30;

/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
}
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ixp4xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static inline void arch_reset(char mode, const char *cmd)
{
if ( 1 && mode == 's') {
/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
} else {
/* Use on-chip reset capability */

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-ks8695/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void arch_reset(char mode, const char *cmd)
unsigned int reg;

if (mode == 's')
cpu_reset(0);
soft_restart(0);

/* disable timer0 */
reg = __raw_readl(KS8695_TMR_VA + KS8695_TMCON);
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-mmp/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ static inline void arch_idle(void)
static inline void arch_reset(char mode, const char *cmd)
{
if (cpu_is_pxa168())
cpu_reset(0xffff0000);
soft_restart(0xffff0000);
else
cpu_reset(0);
soft_restart(0);
}
#endif /* __ASM_MACH_SYSTEM_H */
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-mxs/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void arch_reset(char mode, const char *cmd)
mdelay(50);

/* We'll take a jump through zero as a poor second */
cpu_reset(0);
soft_restart(0);
}

static int __init mxs_arch_reset_init(void)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pnx4008/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void arch_idle(void)

static inline void arch_reset(char mode, const char *cmd)
{
cpu_reset(0);
soft_restart(0);
}

#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-pxa/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void arch_reset(char mode, const char *cmd)
switch (mode) {
case 's':
/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
break;
case 'g':
do_gpio_reset();
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-rpc/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ static inline void arch_reset(char mode, const char *cmd)
/*
* Jump into the ROM
*/
cpu_reset(0);
soft_restart(0);
}
4 changes: 2 additions & 2 deletions trunk/arch/arm/mach-s3c2410/include/mach/system-reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static void
arch_reset(char mode, const char *cmd)
{
if (mode == 's') {
cpu_reset(0);
soft_restart(0);
}

if (s3c24xx_reset_hook)
Expand All @@ -28,5 +28,5 @@ arch_reset(char mode, const char *cmd)
arch_wdt_reset();

/* we'll take a jump through zero as a poor second */
cpu_reset(0);
soft_restart(0);
}
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c64xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static void arch_reset(char mode, const char *cmd)
arch_wdt_reset();

/* if all else fails, or mode was for soft, jump to 0 */
cpu_reset(0);
soft_restart(0);
}

#endif /* __ASM_ARCH_IRQ_H */
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-sa1100/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static inline void arch_reset(char mode, const char *cmd)
{
if (mode == 's') {
/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
} else {
/* Use on-chip reset capability */
RSRR = RSRR_SWR;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-shmobile/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ static inline void arch_idle(void)

static inline void arch_reset(char mode, const char *cmd)
{
cpu_reset(0);
soft_restart(0);
}

#endif
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-w90x900/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static void arch_reset(char mode, const char *cmd)
{
if (mode == 's') {
/* Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
} else {
__raw_writel(WTE | WTRE | WTCLK, WTCR);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-mxc/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void arch_reset(char mode, const char *cmd)
mdelay(50);

/* we'll take a jump through zero as a poor second */
cpu_reset(0);
soft_restart(0);
}

void mxc_arch_reset_init(void __iomem *base)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-spear/include/plat/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static inline void arch_reset(char mode, const char *cmd)
{
if (mode == 's') {
/* software reset, Jump into ROM at address 0 */
cpu_reset(0);
soft_restart(0);
} else {
/* hardware reset, Use on-chip reset capability */
sysctl_soft_reset((void __iomem *)VA_SPEAR_SYS_CTRL_BASE);
Expand Down

0 comments on commit 0615a61

Please sign in to comment.