diff options
Diffstat (limited to 'include/asm-i386')
-rw-r--r-- | include/asm-i386/i8253.h | 6 | ||||
-rw-r--r-- | include/asm-i386/mach-default/do_timer.h | 1 | ||||
-rw-r--r-- | include/asm-i386/mmzone.h | 24 | ||||
-rw-r--r-- | include/asm-i386/processor.h | 8 |
4 files changed, 26 insertions, 13 deletions
diff --git a/include/asm-i386/i8253.h b/include/asm-i386/i8253.h new file mode 100644 index 000000000000..015d8df07690 --- /dev/null +++ b/include/asm-i386/i8253.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef __ASM_I8253_H__ | ||
2 | #define __ASM_I8253_H__ | ||
3 | |||
4 | extern spinlock_t i8253_lock; | ||
5 | |||
6 | #endif /* __ASM_I8253_H__ */ | ||
diff --git a/include/asm-i386/mach-default/do_timer.h b/include/asm-i386/mach-default/do_timer.h index 03dd13a48a8c..56211414fc95 100644 --- a/include/asm-i386/mach-default/do_timer.h +++ b/include/asm-i386/mach-default/do_timer.h | |||
@@ -1,6 +1,7 @@ | |||
1 | /* defines for inline arch setup functions */ | 1 | /* defines for inline arch setup functions */ |
2 | 2 | ||
3 | #include <asm/apic.h> | 3 | #include <asm/apic.h> |
4 | #include <asm/i8259.h> | ||
4 | 5 | ||
5 | /** | 6 | /** |
6 | * do_timer_interrupt_hook - hook into timer tick | 7 | * do_timer_interrupt_hook - hook into timer tick |
diff --git a/include/asm-i386/mmzone.h b/include/asm-i386/mmzone.h index 33ce5d37e894..516421300ea2 100644 --- a/include/asm-i386/mmzone.h +++ b/include/asm-i386/mmzone.h | |||
@@ -8,20 +8,15 @@ | |||
8 | 8 | ||
9 | #include <asm/smp.h> | 9 | #include <asm/smp.h> |
10 | 10 | ||
11 | #if CONFIG_NUMA | 11 | #ifdef CONFIG_NUMA |
12 | extern struct pglist_data *node_data[]; | 12 | extern struct pglist_data *node_data[]; |
13 | #define NODE_DATA(nid) (node_data[nid]) | 13 | #define NODE_DATA(nid) (node_data[nid]) |
14 | 14 | ||
15 | #ifdef CONFIG_NUMA | 15 | #ifdef CONFIG_X86_NUMAQ |
16 | #ifdef CONFIG_X86_NUMAQ | 16 | #include <asm/numaq.h> |
17 | #include <asm/numaq.h> | 17 | #else /* summit or generic arch */ |
18 | #else /* summit or generic arch */ | 18 | #include <asm/srat.h> |
19 | #include <asm/srat.h> | 19 | #endif |
20 | #endif | ||
21 | #else /* !CONFIG_NUMA */ | ||
22 | #define get_memcfg_numa get_memcfg_numa_flat | ||
23 | #define get_zholes_size(n) (0) | ||
24 | #endif /* CONFIG_NUMA */ | ||
25 | 20 | ||
26 | extern int get_memcfg_numa_flat(void ); | 21 | extern int get_memcfg_numa_flat(void ); |
27 | /* | 22 | /* |
@@ -42,6 +37,11 @@ static inline void get_memcfg_numa(void) | |||
42 | get_memcfg_numa_flat(); | 37 | get_memcfg_numa_flat(); |
43 | } | 38 | } |
44 | 39 | ||
40 | extern int early_pfn_to_nid(unsigned long pfn); | ||
41 | |||
42 | #else /* !CONFIG_NUMA */ | ||
43 | #define get_memcfg_numa get_memcfg_numa_flat | ||
44 | #define get_zholes_size(n) (0) | ||
45 | #endif /* CONFIG_NUMA */ | 45 | #endif /* CONFIG_NUMA */ |
46 | 46 | ||
47 | #ifdef CONFIG_DISCONTIGMEM | 47 | #ifdef CONFIG_DISCONTIGMEM |
@@ -151,6 +151,4 @@ static inline int pfn_valid(int pfn) | |||
151 | 151 | ||
152 | #endif /* CONFIG_NEED_MULTIPLE_NODES */ | 152 | #endif /* CONFIG_NEED_MULTIPLE_NODES */ |
153 | 153 | ||
154 | extern int early_pfn_to_nid(unsigned long pfn); | ||
155 | |||
156 | #endif /* _ASM_MMZONE_H_ */ | 154 | #endif /* _ASM_MMZONE_H_ */ |
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h index 6f0f93d0d417..5d06e6bd6ba0 100644 --- a/include/asm-i386/processor.h +++ b/include/asm-i386/processor.h | |||
@@ -694,4 +694,12 @@ extern unsigned long boot_option_idle_override; | |||
694 | extern void enable_sep_cpu(void); | 694 | extern void enable_sep_cpu(void); |
695 | extern int sysenter_setup(void); | 695 | extern int sysenter_setup(void); |
696 | 696 | ||
697 | #ifdef CONFIG_MTRR | ||
698 | extern void mtrr_ap_init(void); | ||
699 | extern void mtrr_bp_init(void); | ||
700 | #else | ||
701 | #define mtrr_ap_init() do {} while (0) | ||
702 | #define mtrr_bp_init() do {} while (0) | ||
703 | #endif | ||
704 | |||
697 | #endif /* __ASM_I386_PROCESSOR_H */ | 705 | #endif /* __ASM_I386_PROCESSOR_H */ |