diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-30 22:27:20 +0200 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-02 18:13:59 +0200 |
commit | b1760c847ff9d04fba7cdbef005a0ad805311c6d (patch) | |
tree | 59f876e619cdbc62268ecd7462e8cc0f4204a9c7 /arch/tile/mm | |
parent | arch/tile: return SIGBUS for addresses that are unaligned AND invalid (diff) | |
download | linux-b1760c847ff9d04fba7cdbef005a0ad805311c6d.tar.xz linux-b1760c847ff9d04fba7cdbef005a0ad805311c6d.zip |
arch/tile: remove bogus performance optimization
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>
Diffstat (limited to 'arch/tile/mm')
-rw-r--r-- | arch/tile/mm/init.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c index 8400d3fb9e0a..6a9d20ddc34f 100644 --- a/arch/tile/mm/init.c +++ b/arch/tile/mm/init.c @@ -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. */ |