diff options
Diffstat (limited to 'arch/x86/include/asm/setup.h')
-rw-r--r-- | arch/x86/include/asm/setup.h | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index ebe858cdc8a3..c2308f5250fd 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h | |||
@@ -1,27 +1,12 @@ | |||
1 | #ifndef _ASM_X86_SETUP_H | 1 | #ifndef _ASM_X86_SETUP_H |
2 | #define _ASM_X86_SETUP_H | 2 | #define _ASM_X86_SETUP_H |
3 | 3 | ||
4 | #ifdef __KERNEL__ | ||
5 | |||
4 | #define COMMAND_LINE_SIZE 2048 | 6 | #define COMMAND_LINE_SIZE 2048 |
5 | 7 | ||
6 | #ifndef __ASSEMBLY__ | 8 | #ifndef __ASSEMBLY__ |
7 | 9 | ||
8 | /* Interrupt control for vSMPowered x86_64 systems */ | ||
9 | void vsmp_init(void); | ||
10 | |||
11 | |||
12 | void setup_bios_corruption_check(void); | ||
13 | |||
14 | |||
15 | #ifdef CONFIG_X86_VISWS | ||
16 | extern void visws_early_detect(void); | ||
17 | extern int is_visws_box(void); | ||
18 | #else | ||
19 | static inline void visws_early_detect(void) { } | ||
20 | static inline int is_visws_box(void) { return 0; } | ||
21 | #endif | ||
22 | |||
23 | extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); | ||
24 | extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); | ||
25 | /* | 10 | /* |
26 | * Any setup quirks to be performed? | 11 | * Any setup quirks to be performed? |
27 | */ | 12 | */ |
@@ -48,16 +33,8 @@ struct x86_quirks { | |||
48 | int (*update_genapic)(void); | 33 | int (*update_genapic)(void); |
49 | }; | 34 | }; |
50 | 35 | ||
51 | extern struct x86_quirks *x86_quirks; | ||
52 | extern unsigned long saved_video_mode; | ||
53 | |||
54 | #ifndef CONFIG_PARAVIRT | ||
55 | #define paravirt_post_allocator_init() do {} while (0) | ||
56 | #endif | ||
57 | #endif /* __ASSEMBLY__ */ | 36 | #endif /* __ASSEMBLY__ */ |
58 | 37 | ||
59 | #ifdef __KERNEL__ | ||
60 | |||
61 | #ifdef __i386__ | 38 | #ifdef __i386__ |
62 | 39 | ||
63 | #include <linux/pfn.h> | 40 | #include <linux/pfn.h> |
@@ -78,6 +55,28 @@ extern unsigned long saved_video_mode; | |||
78 | #ifndef __ASSEMBLY__ | 55 | #ifndef __ASSEMBLY__ |
79 | #include <asm/bootparam.h> | 56 | #include <asm/bootparam.h> |
80 | 57 | ||
58 | /* Interrupt control for vSMPowered x86_64 systems */ | ||
59 | void vsmp_init(void); | ||
60 | |||
61 | void setup_bios_corruption_check(void); | ||
62 | |||
63 | #ifdef CONFIG_X86_VISWS | ||
64 | extern void visws_early_detect(void); | ||
65 | extern int is_visws_box(void); | ||
66 | #else | ||
67 | static inline void visws_early_detect(void) { } | ||
68 | static inline int is_visws_box(void) { return 0; } | ||
69 | #endif | ||
70 | |||
71 | extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); | ||
72 | extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); | ||
73 | extern struct x86_quirks *x86_quirks; | ||
74 | extern unsigned long saved_video_mode; | ||
75 | |||
76 | #ifndef CONFIG_PARAVIRT | ||
77 | #define paravirt_post_allocator_init() do {} while (0) | ||
78 | #endif | ||
79 | |||
81 | #ifndef _SETUP | 80 | #ifndef _SETUP |
82 | 81 | ||
83 | /* | 82 | /* |