diff options
-rw-r--r-- | arch/x86/kernel/apic_32.c | 17 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 46 |
2 files changed, 39 insertions, 24 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index af227bce23b1..acbc4dea2ee8 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -1768,13 +1768,24 @@ early_param("lapic_timer_c2_ok", parse_lapic_timer_c2_ok); | |||
1768 | 1768 | ||
1769 | static int __init apic_set_verbosity(char *arg) | 1769 | static int __init apic_set_verbosity(char *arg) |
1770 | { | 1770 | { |
1771 | if (!arg) | 1771 | if (!arg) { |
1772 | #ifdef CONFIG_X86_64 | ||
1773 | skip_ioapic_setup = 0; | ||
1774 | ioapic_force = 1; | ||
1775 | return 0; | ||
1776 | #endif | ||
1772 | return -EINVAL; | 1777 | return -EINVAL; |
1778 | } | ||
1773 | 1779 | ||
1774 | if (strcmp(arg, "debug") == 0) | 1780 | if (strcmp("debug", arg) == 0) |
1775 | apic_verbosity = APIC_DEBUG; | 1781 | apic_verbosity = APIC_DEBUG; |
1776 | else if (strcmp(arg, "verbose") == 0) | 1782 | else if (strcmp("verbose", arg) == 0) |
1777 | apic_verbosity = APIC_VERBOSE; | 1783 | apic_verbosity = APIC_VERBOSE; |
1784 | else { | ||
1785 | printk(KERN_WARNING "APIC Verbosity level %s not recognised" | ||
1786 | " use apic=verbose or apic=debug\n", arg); | ||
1787 | return -EINVAL; | ||
1788 | } | ||
1778 | 1789 | ||
1779 | return 0; | 1790 | return 0; |
1780 | } | 1791 | } |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index a9ad2cb4ff95..999781810c09 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -1759,27 +1759,6 @@ early_param("nox2apic", setup_nox2apic); | |||
1759 | /* | 1759 | /* |
1760 | * APIC command line parameters | 1760 | * APIC command line parameters |
1761 | */ | 1761 | */ |
1762 | static int __init apic_set_verbosity(char *str) | ||
1763 | { | ||
1764 | if (str == NULL) { | ||
1765 | skip_ioapic_setup = 0; | ||
1766 | ioapic_force = 1; | ||
1767 | return 0; | ||
1768 | } | ||
1769 | if (strcmp("debug", str) == 0) | ||
1770 | apic_verbosity = APIC_DEBUG; | ||
1771 | else if (strcmp("verbose", str) == 0) | ||
1772 | apic_verbosity = APIC_VERBOSE; | ||
1773 | else { | ||
1774 | printk(KERN_WARNING "APIC Verbosity level %s not recognised" | ||
1775 | " use apic=verbose or apic=debug\n", str); | ||
1776 | return -EINVAL; | ||
1777 | } | ||
1778 | |||
1779 | return 0; | ||
1780 | } | ||
1781 | early_param("apic", apic_set_verbosity); | ||
1782 | |||
1783 | static __init int setup_disableapic(char *str) | 1762 | static __init int setup_disableapic(char *str) |
1784 | { | 1763 | { |
1785 | disable_apic = 1; | 1764 | disable_apic = 1; |
@@ -1824,6 +1803,31 @@ static __init int setup_apicpmtimer(char *s) | |||
1824 | } | 1803 | } |
1825 | __setup("apicpmtimer", setup_apicpmtimer); | 1804 | __setup("apicpmtimer", setup_apicpmtimer); |
1826 | 1805 | ||
1806 | static int __init apic_set_verbosity(char *arg) | ||
1807 | { | ||
1808 | if (!arg) { | ||
1809 | #ifdef CONFIG_X86_64 | ||
1810 | skip_ioapic_setup = 0; | ||
1811 | ioapic_force = 1; | ||
1812 | return 0; | ||
1813 | #endif | ||
1814 | return -EINVAL; | ||
1815 | } | ||
1816 | |||
1817 | if (strcmp("debug", arg) == 0) | ||
1818 | apic_verbosity = APIC_DEBUG; | ||
1819 | else if (strcmp("verbose", arg) == 0) | ||
1820 | apic_verbosity = APIC_VERBOSE; | ||
1821 | else { | ||
1822 | printk(KERN_WARNING "APIC Verbosity level %s not recognised" | ||
1823 | " use apic=verbose or apic=debug\n", arg); | ||
1824 | return -EINVAL; | ||
1825 | } | ||
1826 | |||
1827 | return 0; | ||
1828 | } | ||
1829 | early_param("apic", apic_set_verbosity); | ||
1830 | |||
1827 | static int __init lapic_insert_resource(void) | 1831 | static int __init lapic_insert_resource(void) |
1828 | { | 1832 | { |
1829 | if (!apic_phys) | 1833 | if (!apic_phys) |