Commit 6077d265 authored by Sekhar Nori's avatar Sekhar Nori Committed by Kevin Hilman

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: default avatarSekhar Nori <nsekhar@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent baf09a4c
...@@ -16,12 +16,12 @@ ...@@ -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();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment