| To: | Jian Peng <jipeng@broadcom.com>, David Daney <ddaney@caviumnetworks.com> |
|---|---|
| Subject: | Re: patch to support topdown mmap allocation in MIPS |
| From: | Kevin Cernekee <cernekee@gmail.com> |
| Date: | Mon, 16 May 2011 18:27:17 -0700 |
| Cc: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tOYvDOUFzlZUbskSkl0xgPvPTU0PLeKfMO0ly5uDEzg=; b=hkHe9tw5UZiWc0jVVHNYFD1WwL14UWJ+Wqj9O0GzL3CoN/4+vF7PsBM6FJ+xNPk/sj v1jNmtEhMl/rcBy+brnevTisDedYSJWRyOiyvVz8WepQzUyFyMQwH49qmUK8Qgdh04pM wHVQt7quNgKhdmGFkd+JfX5htEgqo38+h1e9o= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=guQreLhK67RvubHDTafsGfgVBHYp3DKEJx9Xh72TL1QhN200jmtOnZTzjUmg12LKxF h/+qbIDvhg929EQ2r+3mOwU0mHkQzZGF7egG98e/7R0eFCcvPW2IujxpUssI8jOeAaVY HcdGQ0Yv7FlsYNrsBH6RhCwDXMFnpCdF7IrAE= |
| In-reply-to: | <4DD1BD72.2000408@caviumnetworks.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <E18F441196CA634DB8E1F1C56A50A8743242B54C8A@IRVEXCHCCR01.corp.ad.broadcom.com> <4DD1BD72.2000408@caviumnetworks.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Mon, May 16, 2011 at 5:12 PM, David Daney <ddaney@caviumnetworks.com> wrote:
> On 05/16/2011 02:09 PM, Jian Peng wrote:
>> #define COLOUR_ALIGN(addr,pgoff) \
>> ((((addr) + shm_align_mask)& ~shm_align_mask) + \
>> (((pgoff)<< PAGE_SHIFT)& shm_align_mask))
I see COLOUR_ALIGN in arch/{arm,mips,sh,sparc} . All sorts of
embedded platforms have to worry about cache aliases nowadays.
Do you think this logic could be folded into the generic
implementations in mm/mmap.c ? Or is there something else inside our
arch_get_unmapped_area* functions that's really, irreparably unique to
MIPS?
>> +#ifdef CONFIG_32BIT
>> + task_size = TASK_SIZE;
>> +#else /* Must be CONFIG_64BIT*/
>> + task_size = test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 :
>> TASK_SIZE;
>> +#endif
Can the "#else" clause and "task_size" local variable be eliminated?
TASK_SIZE now performs this check automatically (although that wasn't
always the case).
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: patch to support topdown mmap allocation in MIPS, Jian Peng |
|---|---|
| Next by Date: | Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering, James Morris |
| Previous by Thread: | RE: patch to support topdown mmap allocation in MIPS, Jian Peng |
| Next by Thread: | Re: patch to support topdown mmap allocation in MIPS, Jian Peng |
| Indexes: | [Date] [Thread] [Top] [All Lists] |