tools, slub: Fix off-by-one buffer corruption after readlink() call
[linux-2.6/linux-mips.git] / arch / arm / mach-prima2 / include / mach / system.h
blob0dbd257ad16d06856bae63e5da8920ea647e5d86
1 /*
2 * arch/arm/mach-prima2/include/mach/system.h
4 * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
6 * Licensed under GPLv2 or later.
7 */
9 #ifndef __MACH_SYSTEM_H__
10 #define __MACH_SYSTEM_H__
12 #include <linux/bitops.h>
13 #include <mach/hardware.h>
15 #define SIRFSOC_SYS_RST_BIT BIT(31)
17 extern void __iomem *sirfsoc_rstc_base;
19 static inline void arch_idle(void)
21 cpu_do_idle();
24 static inline void arch_reset(char mode, const char *cmd)
26 writel(SIRFSOC_SYS_RST_BIT, sirfsoc_rstc_base);
29 #endif