]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/arm/mach-davinci/include/mach/system.h
davinci: make arch_idle and arch_reset as inline functions
[net-next-2.6.git] / arch / arm / mach-davinci / include / mach / system.h
CommitLineData
7c6337e2
KH
1/*
2 * DaVinci system defines
3 *
4 * Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
5 *
6 * 2007 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
10 */
11#ifndef __ASM_ARCH_SYSTEM_H
12#define __ASM_ARCH_SYSTEM_H
13
fced80c7 14#include <linux/io.h>
a09e64fb 15#include <mach/hardware.h>
7c6337e2
KH
16
17extern void davinci_watchdog_reset(void);
18
6077d265 19static inline void arch_idle(void)
7c6337e2
KH
20{
21 cpu_do_idle();
22}
23
6077d265 24static inline void arch_reset(char mode, const char *cmd)
7c6337e2
KH
25{
26 davinci_watchdog_reset();
27}
28
29#endif /* __ASM_ARCH_SYSTEM_H */