davinci: make arch_idle and arch_reset as inline functions
authorSekhar Nori <nsekhar@ti.com>
Thu, 9 Jul 2009 14:56:38 +0000 (20:26 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 26 Aug 2009 07:57:01 +0000 (10:57 +0300)
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>
arch/arm/mach-davinci/include/mach/system.h

index b7e7036..8e4f10f 100644 (file)
 
 extern void davinci_watchdog_reset(void);
 
-static void arch_idle(void)
+static inline void arch_idle(void)
 {
        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();
 }