]> err.no Git - linux-2.6/blobdiff - include/asm-arm/system.h
[ARM] 3564/1: sharpsl_pm: Abstract some machine specific parameters
[linux-2.6] / include / asm-arm / system.h
index 95b3abf4851bb9cc70596edd3a239076910939ee..e6b762b314881d0c7f28cec120b869e46c511bb0 100644 (file)
@@ -108,6 +108,9 @@ extern void __show_regs(struct pt_regs *);
 extern int cpu_architecture(void);
 extern void cpu_init(void);
 
+void arm_machine_restart(char mode);
+extern void (*arm_pm_restart)(char str);
+
 /*
  * Intel's XScale3 core supports some v6 features (supersections, L2)
  * but advertises itself as v5 as it does not support the v6 ISA.  For
@@ -127,6 +130,12 @@ static inline int cpu_is_xsc3(void)
 }
 #endif
 
+#if !defined(CONFIG_CPU_XSCALE) && !defined(CONFIG_CPU_XSC3)
+#define        cpu_is_xscale() 0
+#else
+#define        cpu_is_xscale() 1
+#endif
+
 #define set_cr(x)                                      \
        __asm__ __volatile__(                           \
        "mcr    p15, 0, %0, c1, c0, 0   @ set CR"       \