Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1760c84 authored by Chris Metcalf's avatar Chris Metcalf
Browse files

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: default avatarChris Metcalf <cmetcalf@tilera.com>
parent cdd8e16f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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. */