Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330379
b: refs/heads/master
c: 8e16699
h: refs/heads/master
i:
  330377: 0f273bb
  330375: b38245e
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Sep 27, 2012
1 parent 9308808 commit 70af921
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 466921c5a4669f4315528a25f9afd66601ce2c04
refs/heads/master: 8e166991c0c3631b8af5a26990df77fa2a1d09e6
26 changes: 1 addition & 25 deletions trunk/arch/powerpc/mm/hash_native_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,29 +569,6 @@ static void native_flush_hash_range(unsigned long number, int local)
local_irq_restore(flags);
}

#ifdef CONFIG_PPC_PSERIES
/* Disable TLB batching on nighthawk */
static inline int tlb_batching_enabled(void)
{
struct device_node *root = of_find_node_by_path("/");
int enabled = 1;

if (root) {
const char *model = of_get_property(root, "model", NULL);
if (model && !strcmp(model, "IBM,9076-N81"))
enabled = 0;
of_node_put(root);
}

return enabled;
}
#else
static inline int tlb_batching_enabled(void)
{
return 1;
}
#endif

void __init hpte_init_native(void)
{
ppc_md.hpte_invalidate = native_hpte_invalidate;
Expand All @@ -600,6 +577,5 @@ void __init hpte_init_native(void)
ppc_md.hpte_insert = native_hpte_insert;
ppc_md.hpte_remove = native_hpte_remove;
ppc_md.hpte_clear_all = native_hpte_clear;
if (tlb_batching_enabled())
ppc_md.flush_hash_range = native_flush_hash_range;
ppc_md.flush_hash_range = native_flush_hash_range;
}

0 comments on commit 70af921

Please sign in to comment.