Skip to content

Commit

Permalink
ARM: restart: remove the now empty arch_reset()
Browse files Browse the repository at this point in the history
Remove the now empty arch_reset() from all the mach/system.h includes,
and remove its callsite.  Remove arm_machine_restart() as this function
no longer does anything useful.

For samsung platforms, remove the include of mach/system-reset.h and
plat/system-reset.h from their respective mach/system.h headers as these
just define their arch_reset functions.  As a result, the s3c2410 and
plat-samsung system-reset.h files are no longer referenced, so remove
these files entirely.

Acked-by: Nicolas Pitre <[email protected]>
Acked-by: H Hartley Sweeten <[email protected]>
Acked-by: Jamie Iles <[email protected]>
Acked-by: Tony Lindgren <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent 5e3aa52 commit f88b897
Show file tree
Hide file tree
Showing 56 changed files with 2 additions and 245 deletions.
1 change: 0 additions & 1 deletion arch/arm/include/asm/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ extern void __show_regs(struct pt_regs *);
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);

Expand Down
10 changes: 2 additions & 8 deletions arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,8 @@ void soft_restart(unsigned long addr)
cpu_reset(addr);
}

void arm_machine_restart(char mode, const char *cmd)
static void null_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 All @@ -133,7 +127,7 @@ void arm_machine_restart(char mode, const char *cmd)
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);

void (*arm_pm_restart)(char str, const char *cmd) = arm_machine_restart;
void (*arm_pm_restart)(char str, const char *cmd) = null_restart;
EXPORT_SYMBOL_GPL(arm_pm_restart);

static void do_nothing(void *unused)
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/mach-at91/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,4 @@ static inline void arch_idle(void)
#endif
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-bcmring/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-clps711x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,4 @@ static inline void arch_idle(void)
mov r0, r0");
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-cns3xxx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-davinci/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif /* __ASM_ARCH_SYSTEM_H */
5 changes: 0 additions & 5 deletions arch/arm/mach-dove/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}


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

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-ep93xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
2 changes: 0 additions & 2 deletions arch/arm/mach-exynos/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H __FILE__

#include <plat/system-reset.h>

static void arch_idle(void)
{
/* nothing here yet */
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/mach-footbridge/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-h720x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ static void arch_idle(void)
nop();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-highbank/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-integrator/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-iop13xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-iop32x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-iop33x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-ixp2000/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-ixp23xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ static inline void arch_idle(void)
cpu_do_idle();
#endif
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-ixp4xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ static inline void arch_idle(void)
cpu_do_idle();
#endif
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-kirkwood/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-ks8695/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ static void arch_idle(void)

}

static void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-lpc32xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ static void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-mmp/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,4 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
#endif /* __ASM_MACH_SYSTEM_H */
4 changes: 0 additions & 4 deletions arch/arm/mach-msm/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
*/
void arch_idle(void);

static inline void arch_reset(char mode, const char *cmd)
{
}

/* low level hardware reset hook -- for example, hitting the
* PSHOLD line on the PMIC to hard reset the system
*/
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-mv78xx0/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}


#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-mxs/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif /* __MACH_MXS_SYSTEM_H__ */
4 changes: 0 additions & 4 deletions arch/arm/mach-netx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,5 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif

4 changes: 0 additions & 4 deletions arch/arm/mach-nomadik/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-orion5x/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-picoxcell/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(int mode, const char *cmd)
{
}

#endif /* __ASM_ARCH_SYSTEM_H */
4 changes: 0 additions & 4 deletions arch/arm/mach-pnx4008/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,4 @@ static void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-prima2/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-pxa/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
4 changes: 0 additions & 4 deletions arch/arm/mach-realview/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}

#endif
4 changes: 0 additions & 4 deletions arch/arm/mach-rpc/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}

static inline void arch_reset(char mode, const char *cmd)
{
}
15 changes: 0 additions & 15 deletions arch/arm/mach-s3c2410/include/mach/system-reset.h

This file was deleted.

2 changes: 0 additions & 2 deletions arch/arm/mach-s3c2410/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ static void arch_idle(void)
else
s3c24xx_default_idle();
}

#include <mach/system-reset.h>
4 changes: 0 additions & 4 deletions arch/arm/mach-s3c64xx/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@ static void arch_idle(void)
/* nothing here yet */
}

static void arch_reset(char mode, const char *cmd)
{
}

#endif /* __ASM_ARCH_IRQ_H */
2 changes: 0 additions & 2 deletions arch/arm/mach-s5p64x0/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H __FILE__

#include <plat/system-reset.h>

static void arch_idle(void)
{
/* nothing here yet */
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-s5pc100/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H __FILE__

#include <plat/system-reset.h>

static void arch_idle(void)
{
/* nothing here yet */
Expand Down
Loading

0 comments on commit f88b897

Please sign in to comment.