From: linux@armlinux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: mm: Remove dead code in mem_init()
Date: Sat, 2 Sep 2017 00:06:08 +0100 [thread overview]
Message-ID: <20170901230608.GX20805@n2100.armlinux.org.uk> (raw)
In-Reply-To: <f6a6b57d-b847-8ee6-90bc-771187c7c776@arm.com>
On Fri, Sep 01, 2017 at 11:35:16AM +0100, Vladimir Murzin wrote:
> On 14/08/17 09:44, Vladimir Murzin wrote:
> > The code in question checks memory constrains to set default policy for
> > overcommit; however we support page size of 4K only thus condition is
> > always evaluated to false. Remove that dead code.
> >
> > Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
> > ---
> > arch/arm/mm/init.c | 10 ----------
> > 1 file changed, 10 deletions(-)
> >
> > diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
> > index ad80548..81d4482 100644
> > --- a/arch/arm/mm/init.c
> > +++ b/arch/arm/mm/init.c
> > @@ -580,16 +580,6 @@ void __init mem_init(void)
> > BUILD_BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
> > BUG_ON(PKMAP_BASE + LAST_PKMAP * PAGE_SIZE > PAGE_OFFSET);
> > #endif
> > -
> > - if (PAGE_SIZE >= 16384 && get_num_physpages() <= 128) {
> > - extern int sysctl_overcommit_memory;
> > - /*
> > - * On a machine this small we won't get
> > - * anywhere without overcommit, so turn
> > - * it on by default.
> > - */
> > - sysctl_overcommit_memory = OVERCOMMIT_ALWAYS;
> > - }
> > }
> >
> > #ifdef CONFIG_STRICT_KERNEL_RWX
> >
>
> Ok for patch tracker?
Yep.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
next prev parent reply other threads:[~2017-09-01 23:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 8:44 [PATCH] ARM: Remove leftover of fixmap_page_table Vladimir Murzin
2017-08-14 8:44 ` [PATCH] ARM: entry: Remove dead code in sys_mmap2 Vladimir Murzin
2017-09-01 10:35 ` Vladimir Murzin
2017-09-01 23:05 ` Russell King - ARM Linux
2017-08-14 8:44 ` [PATCH] ARM: mm: Remove dead code in mem_init() Vladimir Murzin
2017-09-01 10:35 ` Vladimir Murzin
2017-09-01 23:06 ` Russell King - ARM Linux [this message]
2017-09-01 10:34 ` [PATCH] ARM: Remove leftover of fixmap_page_table Vladimir Murzin
2017-09-01 23:05 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170901230608.GX20805@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.