Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9049
b: refs/heads/master
c: bc5e8fd
h: refs/heads/master
i:
  9047: 8428ee1
v: v3
  • Loading branch information
Linus Torvalds committed Sep 17, 2005
1 parent 23e27cc commit 3942223
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 61ffcafafb3d985e1ab8463be0187b421614775c
refs/heads/master: bc5e8fdfc622b03acf5ac974a1b8b26da6511c99
15 changes: 15 additions & 0 deletions trunk/arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,26 @@ static void __init amd_detect_cmp(struct cpuinfo_x86 *c)
#endif
}

#define HWCR 0xc0010015

static int __init init_amd(struct cpuinfo_x86 *c)
{
int r;
int level;

#ifdef CONFIG_SMP
unsigned long value;

// Disable TLB flush filter by setting HWCR.FFDIS:
// bit 6 of msr C001_0015
//
// Errata 63 for SH-B3 steppings
// Errata 122 for all(?) steppings
rdmsrl(HWCR, value);
value |= 1 << 6;
wrmsrl(HWCR, value);
#endif

/* Bit 31 in normal CPUID used for nonstandard 3DNow ID;
3DNow is IDd by bit 31 in extended CPUID (1*32+31) anyway */
clear_bit(0*32+31, &c->x86_capability);
Expand Down

0 comments on commit 3942223

Please sign in to comment.