Commit a073817c authored by Anton Blanchard's avatar Anton Blanchard

ppc64: hash_page/flush_hash_page rewrite: no need to check for

hpte in all slots any more.
parent f31e94ef
...@@ -1073,25 +1073,6 @@ void flush_hash_page(unsigned long context, unsigned long ea, pte_t pte) ...@@ -1073,25 +1073,6 @@ void flush_hash_page(unsigned long context, unsigned long ea, pte_t pte)
/* HPTE matches */ /* HPTE matches */
ppc_md.hpte_invalidate(slot); ppc_md.hpte_invalidate(slot);
} }
else {
unsigned k;
/* Temporarily lets check for the hpte in all possible slots */
for ( secondary = 0; secondary < 2; ++secondary ) {
hash = hpt_hash(vpn, 0);
if ( secondary )
hash = ~hash;
slot = (hash & htab_data.htab_hash_mask) * HPTES_PER_GROUP;
for ( k=0; k<8; ++k ) {
hpte_dw0.d = ppc_md.hpte_getword0( slot+k );
if ( ( hpte_dw0.h.avpn == (vpn >> 11) ) &&
( hpte_dw0.h.v ) &&
( hpte_dw0.h.h == secondary ) ) {
while (1) ;
}
}
}
}
spin_unlock_irqrestore( &hash_table_lock, flags ); spin_unlock_irqrestore( &hash_table_lock, flags );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment