diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-18 12:46:01 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-18 20:07:19 -0400 |
commit | 789fa735712d726b5cfa5c6be57171b5637a4872 (patch) | |
tree | f32280337a8c22efaca027c489e809c451d98e97 | |
parent | 79af9bec60e6e218a1e48e8830d603d64a7fc441 (diff) |
x86: apic - unify disableapic and nolapic setup handlers
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/apic_32.c | 11 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index acbc4dea2ee8..5680bda62f78 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -1737,13 +1737,20 @@ static int __init parse_lapic(char *arg) | |||
1737 | } | 1737 | } |
1738 | early_param("lapic", parse_lapic); | 1738 | early_param("lapic", parse_lapic); |
1739 | 1739 | ||
1740 | static int __init parse_nolapic(char *arg) | 1740 | static int __init setup_disableapic(char *arg) |
1741 | { | 1741 | { |
1742 | disable_apic = 1; | 1742 | disable_apic = 1; |
1743 | setup_clear_cpu_cap(X86_FEATURE_APIC); | 1743 | setup_clear_cpu_cap(X86_FEATURE_APIC); |
1744 | return 0; | 1744 | return 0; |
1745 | } | 1745 | } |
1746 | early_param("nolapic", parse_nolapic); | 1746 | early_param("disableapic", setup_disableapic); |
1747 | |||
1748 | /* same as disableapic, for compatibility */ | ||
1749 | static int __init setup_nolapic(char *arg) | ||
1750 | { | ||
1751 | return setup_disableapic(arg); | ||
1752 | } | ||
1753 | early_param("nolapic", setup_nolapic); | ||
1747 | 1754 | ||
1748 | static int __init parse_disable_apic_timer(char *arg) | 1755 | static int __init parse_disable_apic_timer(char *arg) |
1749 | { | 1756 | { |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 999781810c09..7a317180ba2e 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -1759,7 +1759,7 @@ early_param("nox2apic", setup_nox2apic); | |||
1759 | /* | 1759 | /* |
1760 | * APIC command line parameters | 1760 | * APIC command line parameters |
1761 | */ | 1761 | */ |
1762 | static __init int setup_disableapic(char *str) | 1762 | static int __init setup_disableapic(char *arg) |
1763 | { | 1763 | { |
1764 | disable_apic = 1; | 1764 | disable_apic = 1; |
1765 | setup_clear_cpu_cap(X86_FEATURE_APIC); | 1765 | setup_clear_cpu_cap(X86_FEATURE_APIC); |
@@ -1768,9 +1768,9 @@ static __init int setup_disableapic(char *str) | |||
1768 | early_param("disableapic", setup_disableapic); | 1768 | early_param("disableapic", setup_disableapic); |
1769 | 1769 | ||
1770 | /* same as disableapic, for compatibility */ | 1770 | /* same as disableapic, for compatibility */ |
1771 | static __init int setup_nolapic(char *str) | 1771 | static int __init setup_nolapic(char *arg) |
1772 | { | 1772 | { |
1773 | return setup_disableapic(str); | 1773 | return setup_disableapic(arg); |
1774 | } | 1774 | } |
1775 | early_param("nolapic", setup_nolapic); | 1775 | early_param("nolapic", setup_nolapic); |
1776 | 1776 | ||