From: Mike Rapoport <rppt@linux.ibm.com>
To: Guo Ren <guoren@kernel.org>
Cc: linux-csky@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] csky: use generic free_initrd_mem()
Date: Wed, 28 Aug 2019 17:39:47 +0300 [thread overview]
Message-ID: <20190828143946.GA21342@rapoport-lnx> (raw)
In-Reply-To: <CAJF2gTTF0W18kPzXP8hOA64FuOx=atxFnCk0syEhP7s7LOm0Kw@mail.gmail.com>
Hi,
On Wed, Aug 28, 2019 at 10:12:52PM +0800, Guo Ren wrote:
> Acked-by: Guo Ren <guoren@kernel.org>
Do you mind taking it via csky tree?
> On Wed, Aug 28, 2019 at 9:35 PM Mike Rapoport <rppt@linux.ibm.com> wrote:
> >
> > The csky implementation of free_initrd_mem() is an open-coded version of
> > free_reserved_area() without poisoning.
> >
> > Remove it and make csky use the generic version of free_initrd_mem().
> >
> > Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
> > ---
> > arch/csky/mm/init.c | 16 ----------------
> > 1 file changed, 16 deletions(-)
> >
> > diff --git a/arch/csky/mm/init.c b/arch/csky/mm/init.c
> > index eb0dc9e..d4c2292 100644
> > --- a/arch/csky/mm/init.c
> > +++ b/arch/csky/mm/init.c
> > @@ -60,22 +60,6 @@ void __init mem_init(void)
> > mem_init_print_info(NULL);
> > }
> >
> > -#ifdef CONFIG_BLK_DEV_INITRD
> > -void free_initrd_mem(unsigned long start, unsigned long end)
> > -{
> > - if (start < end)
> > - pr_info("Freeing initrd memory: %ldk freed\n",
> > - (end - start) >> 10);
> > -
> > - for (; start < end; start += PAGE_SIZE) {
> > - ClearPageReserved(virt_to_page(start));
> > - init_page_count(virt_to_page(start));
> > - free_page(start);
> > - totalram_pages_inc();
> > - }
> > -}
> > -#endif
> > -
> > extern char __init_begin[], __init_end[];
> >
> > void free_initmem(void)
> > --
> > 2.7.4
> >
>
>
> --
> Best Regards
> Guo Ren
>
> ML: https://lore.kernel.org/linux-csky/
>
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2019-08-28 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-28 13:35 [PATCH] csky: use generic free_initrd_mem() Mike Rapoport
2019-08-28 14:12 ` Guo Ren
2019-08-28 14:39 ` Mike Rapoport [this message]
2019-08-28 16:08 ` Guo Ren
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=20190828143946.GA21342@rapoport-lnx \
--to=rppt@linux.ibm.com \
--cc=guoren@kernel.org \
--cc=linux-csky@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox