Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145749
b: refs/heads/master
c: ba518be
h: refs/heads/master
i:
  145747: 065f13f
v: v3
  • Loading branch information
Mark Langsdorf authored and Ingo Molnar committed Apr 10, 2009
1 parent 8b0ca7d commit acfc033
Show file tree
Hide file tree
Showing 2 changed files with 7 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: f8b201fc7110c3673437254e8ba02451461ece0b
refs/heads/master: ba518bea2db21c72d44a6cbfd825b026ef9cdcb6
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/cpu/intel_cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ static ssize_t store_cache_disable(struct _cpuid4_info *this_leaf,
int node = cpu_to_node(cpu);
struct pci_dev *dev = node_to_k8_nb_misc(node);
unsigned long val = 0;
unsigned int scrubber = 0;

if (!this_leaf->can_disable)
return -EINVAL;
Expand All @@ -745,6 +746,11 @@ static ssize_t store_cache_disable(struct _cpuid4_info *this_leaf,
return -EINVAL;

val |= 0xc0000000;

pci_read_config_dword(dev, 0x58, &scrubber);
scrubber &= ~0x1f000000;
pci_write_config_dword(dev, 0x58, scrubber);

pci_write_config_dword(dev, 0x1BC + index * 4, val & ~0x40000000);
wbinvd();
pci_write_config_dword(dev, 0x1BC + index * 4, val);
Expand Down

0 comments on commit acfc033

Please sign in to comment.