]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
arch/tile: remove bogus performance optimization
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Mar 2012 20:27:20 +0000 (16:27 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 2 Apr 2012 16:13:59 +0000 (12:13 -0400)
We were re-homing the initial task's kernel stack on the boot cpu,
but in fact it's better to let it stay globally homed, since that
task isn't bound to the boot cpu anyway.  This is more of a general
cleanup than an actual performance optimization, but it removes
code, which is a good thing. :-)

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/mm/init.c

index 8400d3fb9e0a0c837f0746b8661ced347616a183..6a9d20ddc34f416438a7d9717cf75919ea7fa34b 100644 (file)
@@ -254,11 +254,6 @@ static pgprot_t __init init_pgprot(ulong address)
                return construct_pgprot(PAGE_KERNEL_RO, PAGE_HOME_IMMUTABLE);
        }
 
-       /* As a performance optimization, keep the boot init stack here. */
-       if (address >= (ulong)&init_thread_union &&
-           address < (ulong)&init_thread_union + THREAD_SIZE)
-               return construct_pgprot(PAGE_KERNEL, smp_processor_id());
-
 #ifndef __tilegx__
 #if !ATOMIC_LOCKS_FOUND_VIA_TABLE()
        /* Force the atomic_locks[] array page to be hash-for-home. */