• Andrew Morton's avatar
    [PATCH] ppc64: remove silly debug path from get_vsid() · d80734da
    Andrew Morton authored
    From: David Gibson <david@gibson.dropbear.id.au>
    
    Currently the get_vsid() and get_kernel_vsid() functions have a test which
    enables a different VSID algorithm for debugging.  Using a dumb VSID
    algorithm for stressing the hash table is a reasonable debugging tool, but
    switching it at runtime makes no sense at all.  Plus it adds another test
    and memory access to the performance critical SLB miss path.
    
    This patch removes the test, replacing it with a compile time switch.  It
    seems to make a measurable, although small speedup to the SLB miss path
    (maybe 0.5%).
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d80734da
mmu_context.h 5.56 KB