Re: [PATCH] ARM: mm: Speed up page list initialization during boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On (01/05/16 18:56), Jungseung Lee wrote:
[..]
> > > >> #ifdef CONFIG_HIGHMEM
> > > >> static inline void free_area_high(unsigned long pfn, unsigned long
> > > >>end)  {
> > > >>-      for (; pfn < end; pfn++)
> > > >>-              free_highmem_page(pfn_to_page(pfn));
> > > >>+      while (pfn < end) {
> > > >>+              struct page *page = pfn_to_page(pfn);
> > > >>+              unsigned long order = min(__ffs(pfn), MAX_ORDER - 1);
> > > >>+              unsigned long nr_pages = 1 << order;
> > > >>+              unsigned long rem = end - pfn;
> > > >>+
> > > >>+              if (nr_pages > rem) {
> > > >>+                      order = __fls(rem);
> > > >>+                      nr_pages = 1 << order;
> > > >>+              }
> > > >>+
> > > >>+              __free_pages_bootmem(page, order);
> > > >>+              totalram_pages += nr_pages;
> > > >>+              totalhigh_pages += nr_pages;

+			page_zone(page)->managed_pages += nr_pages;  ???

> > > >>+              pfn += nr_pages;
> > > >>+      }
> > > >> }

	-ss

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]