diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-26 17:19:40 -0400 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-26 17:19:40 -0400 |
| commit | 2a322e4c08be4e7cb0c04b427ddaaa679fd88863 (patch) | |
| tree | ad8cc17bfd3b5e57e36f07a249028667d72f0b96 /arch/i386/mach-default/setup.c | |
| parent | ba6d2377c85c9b8a793f455d8c9b6cf31985d70f (diff) | |
| parent | 8678887e7fb43cd6c9be6c9807b05e77848e0920 (diff) | |
Automatic merge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'arch/i386/mach-default/setup.c')
| -rw-r--r-- | arch/i386/mach-default/setup.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/i386/mach-default/setup.c b/arch/i386/mach-default/setup.c index 0aa08eaa8932..e5a1a83d09ef 100644 --- a/arch/i386/mach-default/setup.c +++ b/arch/i386/mach-default/setup.c | |||
| @@ -10,6 +10,14 @@ | |||
| 10 | #include <asm/acpi.h> | 10 | #include <asm/acpi.h> |
| 11 | #include <asm/arch_hooks.h> | 11 | #include <asm/arch_hooks.h> |
| 12 | 12 | ||
| 13 | #ifdef CONFIG_HOTPLUG_CPU | ||
| 14 | #define DEFAULT_SEND_IPI (1) | ||
| 15 | #else | ||
| 16 | #define DEFAULT_SEND_IPI (0) | ||
| 17 | #endif | ||
| 18 | |||
| 19 | int no_broadcast=DEFAULT_SEND_IPI; | ||
| 20 | |||
| 13 | /** | 21 | /** |
| 14 | * pre_intr_init_hook - initialisation prior to setting up interrupt vectors | 22 | * pre_intr_init_hook - initialisation prior to setting up interrupt vectors |
| 15 | * | 23 | * |
| @@ -104,3 +112,22 @@ void __init mca_nmi_hook(void) | |||
| 104 | printk("NMI generated from unknown source!\n"); | 112 | printk("NMI generated from unknown source!\n"); |
| 105 | } | 113 | } |
| 106 | #endif | 114 | #endif |
| 115 | |||
| 116 | static __init int no_ipi_broadcast(char *str) | ||
| 117 | { | ||
| 118 | get_option(&str, &no_broadcast); | ||
| 119 | printk ("Using %s mode\n", no_broadcast ? "No IPI Broadcast" : | ||
| 120 | "IPI Broadcast"); | ||
| 121 | return 1; | ||
| 122 | } | ||
| 123 | |||
| 124 | __setup("no_ipi_broadcast", no_ipi_broadcast); | ||
| 125 | |||
| 126 | static int __init print_ipi_mode(void) | ||
| 127 | { | ||
| 128 | printk ("Using IPI %s mode\n", no_broadcast ? "No-Shortcut" : | ||
| 129 | "Shortcut"); | ||
| 130 | return 0; | ||
| 131 | } | ||
| 132 | |||
| 133 | late_initcall(print_ipi_mode); | ||
