diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 22:34:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-01 22:34:52 -0700 |
commit | 2cc12e2e8cb65aec9a95a3d3de4d70e7b6b8c881 (patch) | |
tree | 0c10dbd82bead349ee0cb61046f5d82d520877be /arch/x86/kernel | |
parent | 66acd7fc9415bc05482b829e7de4073c1072b1de (diff) | |
parent | 0ccecd95e797f0c383a43278fcca74d47cd8a785 (diff) | |
download | linux-stable-2cc12e2e8cb65aec9a95a3d3de4d70e7b6b8c881.tar.gz linux-stable-2cc12e2e8cb65aec9a95a3d3de4d70e7b6b8c881.tar.bz2 linux-stable-2cc12e2e8cb65aec9a95a3d3de4d70e7b6b8c881.zip |
Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 cleanups from Ingo Molnar:
"A handful of small cleanups"
* 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/irq: Remove a redundant #ifdef directive
x86/smp: Remove the redundant #ifdef CONFIG_SMP directive
x86/smp: Reduce code duplication
x86/pci-calgary: Use setup_timer() instead of open coding it.
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/irqinit.c | 2 | ||||
-rw-r--r-- | arch/x86/kernel/pci-calgary_64.c | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c index 1423ab1b0312..7468c6987547 100644 --- a/arch/x86/kernel/irqinit.c +++ b/arch/x86/kernel/irqinit.c @@ -195,7 +195,5 @@ void __init native_init_IRQ(void) if (!acpi_ioapic && !of_ioapic && nr_legacy_irqs()) setup_irq(2, &irq2); -#ifdef CONFIG_X86_32 irq_ctx_init(smp_processor_id()); -#endif } diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c index 0c150c06fa5a..fda7867046d0 100644 --- a/arch/x86/kernel/pci-calgary_64.c +++ b/arch/x86/kernel/pci-calgary_64.c @@ -1007,9 +1007,8 @@ static void __init calgary_enable_translation(struct pci_dev *dev) writel(cpu_to_be32(val32), target); readl(target); /* flush */ - init_timer(&tbl->watchdog_timer); - tbl->watchdog_timer.function = &calgary_watchdog; - tbl->watchdog_timer.data = (unsigned long)dev; + setup_timer(&tbl->watchdog_timer, &calgary_watchdog, + (unsigned long)dev); mod_timer(&tbl->watchdog_timer, jiffies); } |