x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / arch / powerpc / include / asm / setup.h
blob654d64c9f3acd8366fdcf109111f3b5c16cdde21
1 #ifndef _ASM_POWERPC_SETUP_H
2 #define _ASM_POWERPC_SETUP_H
4 #include <uapi/asm/setup.h>
6 #ifndef __ASSEMBLY__
7 extern void ppc_printk_progress(char *s, unsigned short hex);
9 extern unsigned int rtas_data;
10 extern unsigned long long memory_limit;
11 extern unsigned long klimit;
12 extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
14 struct device_node;
15 extern void note_scsi_host(struct device_node *, void *);
17 /* Used in very early kernel initialization. */
18 extern unsigned long reloc_offset(void);
19 extern unsigned long add_reloc_offset(unsigned long);
20 extern void reloc_got2(unsigned long);
22 #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
24 void check_for_initrd(void);
25 void initmem_init(void);
26 void setup_panic(void);
27 #define ARCH_PANIC_TIMEOUT 180
29 #ifdef CONFIG_PPC_PSERIES
30 extern void pseries_enable_reloc_on_exc(void);
31 extern void pseries_disable_reloc_on_exc(void);
32 extern void pseries_big_endian_exceptions(void);
33 extern void pseries_little_endian_exceptions(void);
34 #else
35 static inline void pseries_enable_reloc_on_exc(void) {}
36 static inline void pseries_disable_reloc_on_exc(void) {}
37 static inline void pseries_big_endian_exceptions(void) {}
38 static inline void pseries_little_endian_exceptions(void) {}
39 #endif /* CONFIG_PPC_PSERIES */
41 #endif /* !__ASSEMBLY__ */
43 #endif /* _ASM_POWERPC_SETUP_H */