cregit-Linux how code gets into the kernel

Release 4.14 arch/cris/mm/init.c

Directory: arch/cris/mm
// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/arch/cris/mm/init.c
 *
 *  Copyright (C) 1995  Linus Torvalds
 *  Copyright (C) 2000,2001  Axis Communications AB
 *
 *  Authors:  Bjorn Wesen (bjornw@axis.com)
 *
 */

#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/bootmem.h>
#include <linux/proc_fs.h>
#include <linux/kcore.h>
#include <asm/tlb.h>
#include <asm/sections.h>


unsigned long empty_zero_page;

EXPORT_SYMBOL(empty_zero_page);


void __init mem_init(void) { BUG_ON(!mem_map); /* max/min_low_pfn was set by setup.c * now we just copy it to some other necessary places... * * high_memory was also set in setup.c */ max_mapnr = max_low_pfn - min_low_pfn; free_all_bootmem(); mem_init_print_info(NULL); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds2482.76%133.33%
Stoyan Gaydarov310.34%133.33%
Jiang Liu26.90%133.33%
Total29100.00%3100.00%

/* Free a range of init pages. Virtual addresses. */
void free_init_pages(const char *what, unsigned long begin, unsigned long end) { unsigned long addr; for (addr = begin; addr < end; addr += PAGE_SIZE) { ClearPageReserved(virt_to_page(addr)); init_page_count(virt_to_page(addr)); free_page(addr); totalram_pages++; } printk(KERN_INFO "Freeing %s: %ldk freed\n", what, (end - begin) >> 10); }

Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson7798.72%150.00%
Linus Torvalds11.28%150.00%
Total78100.00%2100.00%

/* Free the pages occupied by initialization code. */
void free_initmem(void) { free_initmem_default(-1); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds861.54%233.33%
Jiang Liu323.08%233.33%
Jesper Nilsson17.69%116.67%
Mikael Starvik17.69%116.67%
Total13100.00%6100.00%

/* Free the pages occupied by initrd code. */ #ifdef CONFIG_BLK_DEV_INITRD
void free_initrd_mem(unsigned long start, unsigned long end) { free_init_pages("initrd memory", start, end); }

Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson22100.00%1100.00%
Total22100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson12065.93%218.18%
Linus Torvalds4021.98%218.18%
Jiang Liu84.40%327.27%
Mikael Starvik73.85%19.09%
Tejun Heo31.65%19.09%
Stoyan Gaydarov31.65%19.09%
Greg Kroah-Hartman10.55%19.09%
Total182100.00%11100.00%
Directory: arch/cris/mm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.