diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-11-12 09:10:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-11-12 09:10:12 -0500 |
commit | 29cc3730370f5fef9762a90fb515a8b1cd5fd7a6 (patch) | |
tree | 6cc7faf5284a4fe6626a724791f92c41d244f689 /arch/x86/kernel | |
parent | 890ca861f868a10617029ffc87eae7d48ea6876c (diff) | |
parent | 6f9b63a0ae0d694e3d8e6f673e1e8e2638526b97 (diff) |
Merge tag 'x86_queue_for_3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp into x86/cleanups
Pull two minor cleanups from Borislav Petkov.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/amd.c | 23 | ||||
-rw-r--r-- | arch/x86/kernel/espfix_64.c | 3 |
2 files changed, 11 insertions, 15 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 813d29d00a17..15c5df92f74e 100644 --- a/arch/x86/kernel/cpu/amd.c +++ b/arch/x86/kernel/cpu/amd.c | |||
@@ -566,6 +566,17 @@ static void init_amd_k8(struct cpuinfo_x86 *c) | |||
566 | 566 | ||
567 | if (!c->x86_model_id[0]) | 567 | if (!c->x86_model_id[0]) |
568 | strcpy(c->x86_model_id, "Hammer"); | 568 | strcpy(c->x86_model_id, "Hammer"); |
569 | |||
570 | #ifdef CONFIG_SMP | ||
571 | /* | ||
572 | * Disable TLB flush filter by setting HWCR.FFDIS on K8 | ||
573 | * bit 6 of msr C001_0015 | ||
574 | * | ||
575 | * Errata 63 for SH-B3 steppings | ||
576 | * Errata 122 for all steppings (F+ have it disabled by default) | ||
577 | */ | ||
578 | msr_set_bit(MSR_K7_HWCR, 6); | ||
579 | #endif | ||
569 | } | 580 | } |
570 | 581 | ||
571 | static void init_amd_gh(struct cpuinfo_x86 *c) | 582 | static void init_amd_gh(struct cpuinfo_x86 *c) |
@@ -636,18 +647,6 @@ static void init_amd(struct cpuinfo_x86 *c) | |||
636 | { | 647 | { |
637 | u32 dummy; | 648 | u32 dummy; |
638 | 649 | ||
639 | #ifdef CONFIG_SMP | ||
640 | /* | ||
641 | * Disable TLB flush filter by setting HWCR.FFDIS on K8 | ||
642 | * bit 6 of msr C001_0015 | ||
643 | * | ||
644 | * Errata 63 for SH-B3 steppings | ||
645 | * Errata 122 for all steppings (F+ have it disabled by default) | ||
646 | */ | ||
647 | if (c->x86 == 0xf) | ||
648 | msr_set_bit(MSR_K7_HWCR, 6); | ||
649 | #endif | ||
650 | |||
651 | early_init_amd(c); | 650 | early_init_amd(c); |
652 | 651 | ||
653 | /* | 652 | /* |
diff --git a/arch/x86/kernel/espfix_64.c b/arch/x86/kernel/espfix_64.c index 94d857fb1033..f5d0730e7b08 100644 --- a/arch/x86/kernel/espfix_64.c +++ b/arch/x86/kernel/espfix_64.c | |||
@@ -122,9 +122,6 @@ static void init_espfix_random(void) | |||
122 | void __init init_espfix_bsp(void) | 122 | void __init init_espfix_bsp(void) |
123 | { | 123 | { |
124 | pgd_t *pgd_p; | 124 | pgd_t *pgd_p; |
125 | pteval_t ptemask; | ||
126 | |||
127 | ptemask = __supported_pte_mask; | ||
128 | 125 | ||
129 | /* Install the espfix pud into the kernel page directory */ | 126 | /* Install the espfix pud into the kernel page directory */ |
130 | pgd_p = &init_level4_pgt[pgd_index(ESPFIX_BASE_ADDR)]; | 127 | pgd_p = &init_level4_pgt[pgd_index(ESPFIX_BASE_ADDR)]; |