davinci: make arch_idle and arch_reset as inline functions
Make arch_idle and arch_reset inline as inline function. Not having them inline leads to a warning of this sort when only one of these functions is used: arch/arm/mach-davinci/include/mach/system.h:24: warning: 'arch_reset' \ defined but not used boot, re-boot tested on OMAP-L138 EVM Signed-off-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
committed by
Kevin Hilman
parent
baf09a4cd0
commit
6077d26532
@@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
extern void davinci_watchdog_reset(void);
|
extern void davinci_watchdog_reset(void);
|
||||||
|
|
||||||
static void arch_idle(void)
|
static inline void arch_idle(void)
|
||||||
{
|
{
|
||||||
cpu_do_idle();
|
cpu_do_idle();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void arch_reset(char mode, const char *cmd)
|
static inline void arch_reset(char mode, const char *cmd)
|
||||||
{
|
{
|
||||||
davinci_watchdog_reset();
|
davinci_watchdog_reset();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user