Skip to content

Commit

Permalink
Merge tag 'x86_queue_for_3.19' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/bp/bp into x86/cleanups

Pull two minor cleanups from Borislav Petkov.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Ingo Molnar committed Nov 12, 2014
2 parents 890ca86 + 6f9b63a commit 29cc373
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
23 changes: 11 additions & 12 deletions arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,17 @@ static void init_amd_k8(struct cpuinfo_x86 *c)

if (!c->x86_model_id[0])
strcpy(c->x86_model_id, "Hammer");

#ifdef CONFIG_SMP
/*
* Disable TLB flush filter by setting HWCR.FFDIS on K8
* bit 6 of msr C001_0015
*
* Errata 63 for SH-B3 steppings
* Errata 122 for all steppings (F+ have it disabled by default)
*/
msr_set_bit(MSR_K7_HWCR, 6);
#endif
}

static void init_amd_gh(struct cpuinfo_x86 *c)
Expand Down Expand Up @@ -636,18 +647,6 @@ static void init_amd(struct cpuinfo_x86 *c)
{
u32 dummy;

#ifdef CONFIG_SMP
/*
* Disable TLB flush filter by setting HWCR.FFDIS on K8
* bit 6 of msr C001_0015
*
* Errata 63 for SH-B3 steppings
* Errata 122 for all steppings (F+ have it disabled by default)
*/
if (c->x86 == 0xf)
msr_set_bit(MSR_K7_HWCR, 6);
#endif

early_init_amd(c);

/*
Expand Down
3 changes: 0 additions & 3 deletions arch/x86/kernel/espfix_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ static void init_espfix_random(void)
void __init init_espfix_bsp(void)
{
pgd_t *pgd_p;
pteval_t ptemask;

ptemask = __supported_pte_mask;

/* Install the espfix pud into the kernel page directory */
pgd_p = &init_level4_pgt[pgd_index(ESPFIX_BASE_ADDR)];
Expand Down

0 comments on commit 29cc373

Please sign in to comment.