dect
/
linux-2.6
Archived
13
0
Fork 0

ARM: restart: remove the now empty arch_reset()

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 <nico@linaro.org>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2011-11-05 21:30:00 +00:00
parent 5e3aa527c3
commit f88b8979d2
56 changed files with 2 additions and 245 deletions

View File

@ -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);

View File

@ -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);
}
/*
@ -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)

View File

@ -47,8 +47,4 @@ static inline void arch_idle(void)
#endif
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -25,8 +25,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -32,8 +32,4 @@ static inline void arch_idle(void)
mov r0, r0");
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -22,8 +22,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -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 */

View File

@ -14,9 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -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

View File

@ -5,7 +5,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -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 */

View File

@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -24,8 +24,4 @@ static void arch_idle(void)
nop();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -21,8 +21,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -12,7 +12,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -14,7 +14,3 @@ static inline void arch_idle(void)
cpu_do_idle();
#endif
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -17,7 +17,3 @@ static inline void arch_idle(void)
cpu_do_idle();
#endif
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -14,8 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -24,8 +24,4 @@ static void arch_idle(void)
}
static void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -24,8 +24,4 @@ static void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -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 */

View File

@ -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
*/

View File

@ -14,9 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -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__ */

View File

@ -24,9 +24,5 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -29,8 +29,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -16,8 +16,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -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 */

View File

@ -26,8 +26,4 @@ static void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -14,8 +14,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -13,7 +13,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -11,7 +11,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -1,15 +0,0 @@
/* arch/arm/mach-s3c2410/include/mach/system-reset.h
*
* Copyright (c) 2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
*
* S3C2410 - System define for arch_reset() function
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
static void arch_reset(char mode, const char *cmd)
{
}

View File

@ -52,5 +52,3 @@ static void arch_idle(void)
else
s3c24xx_default_idle();
}
#include <mach/system-reset.h>

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -7,7 +7,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -6,10 +6,6 @@
#ifndef __ASM_ARCH_SYSTEM_H
#define __ASM_ARCH_SYSTEM_H
static inline void arch_reset(char mode, const char *cmd)
{
}
static inline void arch_idle(void)
{
}

View File

@ -21,10 +21,6 @@
#ifndef __MACH_TEGRA_SYSTEM_H
#define __MACH_TEGRA_SYSTEM_H
static inline void arch_reset(char mode, const char *cmd)
{
}
static inline void arch_idle(void)
{
}

View File

@ -12,7 +12,3 @@ static inline void arch_idle(void)
{
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}

View File

@ -17,8 +17,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -30,8 +30,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -17,8 +17,3 @@
static void arch_idle(void)
{
}
static void arch_reset(char mode, const char *cmd)
{
}

View File

@ -20,8 +20,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -22,8 +22,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif /* __ASM_ARCH_MXC_SYSTEM_H__ */

View File

@ -12,8 +12,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif

View File

@ -1,20 +0,0 @@
/* linux/arch/arm/plat-samsung/include/plat/system-reset.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Based on arch/arm/mach-s3c2410/include/mach/system-reset.h
*
* S5P - System define for arch_reset()
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <plat/watchdog-reset.h>
static void arch_reset(char mode, const char *cmd)
{
arch_wdt_reset();
}

View File

@ -23,8 +23,4 @@ static inline void arch_idle(void)
cpu_do_idle();
}
static inline void arch_reset(char mode, const char *cmd)
{
}
#endif /* __PLAT_SYSTEM_H */