Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu

Pull percpu update from Tejun Heo:
"Another minor pull request. It only contains one commit which can
reclaim a bit of memory wasted during boot on UP"

* 'for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
percpu: don't forget to free the temporary struct pcpu_alloc_info

+2 -1
+2 -1
mm/percpu.c
··· 1856 1856 __alignof__(ai->groups[0].cpu_map[0])); 1857 1857 ai_size = base_size + nr_units * sizeof(ai->groups[0].cpu_map[0]); 1858 1858 1859 - ptr = memblock_virt_alloc_nopanic(PFN_ALIGN(ai_size), 0); 1859 + ptr = memblock_virt_alloc_nopanic(PFN_ALIGN(ai_size), PAGE_SIZE); 1860 1860 if (!ptr) 1861 1861 return NULL; 1862 1862 ai = ptr; ··· 2719 2719 2720 2720 if (pcpu_setup_first_chunk(ai, fc) < 0) 2721 2721 panic("Failed to initialize percpu areas."); 2722 + pcpu_free_alloc_info(ai); 2722 2723 } 2723 2724 2724 2725 #endif /* CONFIG_SMP */