aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/io_apic.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-26 04:52:32 -0400
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 04:52:32 -0400
commit2c8c0e6b8d7700a990da8d24eff767f9ca223b96 (patch)
treeb5477ee2558efff235c483d1619ce892db479d18 /arch/x86_64/kernel/io_apic.c
parent1a3f239ddf9208f2e52d36fef1c1c4518cbbbabe (diff)
[PATCH] Convert x86-64 to early param
Instead of hackish manual parsing Requires earlier i386 patchkit, but also fixes i386 early_printk again. I removed some obsolete really early parameters which didn't do anything useful. Also made a few parameters that needed it early (mostly oops printing setup) Also removed one panic check that wasn't visible without early console anyways (the early console is now initialized after that panic) This cleans up a lot of code. Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch/x86_64/kernel/io_apic.c')
-rw-r--r--arch/x86_64/kernel/io_apic.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/x86_64/kernel/io_apic.c b/arch/x86_64/kernel/io_apic.c
index a1412042b918..afac3dbb3729 100644
--- a/arch/x86_64/kernel/io_apic.c
+++ b/arch/x86_64/kernel/io_apic.c
@@ -48,7 +48,7 @@ int sis_apic_bug; /* not actually supported, dummy for compile */
48 48
49static int no_timer_check; 49static int no_timer_check;
50 50
51int disable_timer_pin_1 __initdata; 51static int disable_timer_pin_1 __initdata;
52 52
53int timer_over_8254 __initdata = 0; 53int timer_over_8254 __initdata = 0;
54 54
@@ -253,18 +253,17 @@ int ioapic_force;
253static int __init disable_ioapic_setup(char *str) 253static int __init disable_ioapic_setup(char *str)
254{ 254{
255 skip_ioapic_setup = 1; 255 skip_ioapic_setup = 1;
256 return 1; 256 return 0;
257} 257}
258early_param("noapic", disable_ioapic_setup);
258 259
259static int __init enable_ioapic_setup(char *str) 260/* Actually the next is obsolete, but keep it for paranoid reasons -AK */
261static int __init disable_timer_pin_setup(char *arg)
260{ 262{
261 ioapic_force = 1; 263 disable_timer_pin_1 = 1;
262 skip_ioapic_setup = 0;
263 return 1; 264 return 1;
264} 265}
265 266__setup("disable_timer_pin_1", disable_timer_pin_setup);
266__setup("noapic", disable_ioapic_setup);
267__setup("apic", enable_ioapic_setup);
268 267
269static int __init setup_disable_8254_timer(char *s) 268static int __init setup_disable_8254_timer(char *s)
270{ 269{