cregit-Linux how code gets into the kernel

Release 4.10 arch/s390/mm/mem_detect.c

Directory: arch/s390/mm
/*
 * Copyright IBM Corp. 2008, 2009
 *
 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/memblock.h>
#include <linux/init.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <asm/ipl.h>
#include <asm/sclp.h>
#include <asm/setup.h>


#define CHUNK_READ_WRITE 0

#define CHUNK_READ_ONLY  1


static inline void memblock_physmem_add(phys_addr_t start, phys_addr_t size) { memblock_add_range(&memblock.memory, start, size, 0, 0); memblock_add_range(&memblock.physmem, start, size, 0, 0); }

Contributors

PersonTokensPropCommitsCommitProp
philipp hachtmannphilipp hachtmann4191.11%133.33%
heiko carstensheiko carstens48.89%266.67%
Total45100.00%3100.00%


void __init detect_memory_memblock(void) { unsigned long memsize, rnmax, rzm, addr, size; int type; rzm = sclp.rzm; rnmax = sclp.rnmax; memsize = rzm * rnmax; if (!rzm) rzm = 1UL << 17; max_physmem_end = memsize; addr = 0; /* keep memblock lists close to the kernel */ memblock_set_bottom_up(true); do { size = 0; type = tprot(addr); do { size += rzm; if (max_physmem_end && addr + size >= max_physmem_end) break; } while (type == tprot(addr + size)); if (type == CHUNK_READ_WRITE || type == CHUNK_READ_ONLY) { if (max_physmem_end && (addr + size > max_physmem_end)) size = max_physmem_end - addr; memblock_physmem_add(addr, size); } addr += size; } while (addr < max_physmem_end); memblock_set_bottom_up(false); if (!max_physmem_end) max_physmem_end = memblock_end_of_DRAM(); }

Contributors

PersonTokensPropCommitsCommitProp
heiko carstensheiko carstens13477.46%666.67%
philipp hachtmannphilipp hachtmann3117.92%111.11%
david hildenbranddavid hildenbrand63.47%111.11%
michael holzheumichael holzheu21.16%111.11%
Total173100.00%9100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
heiko carstensheiko carstens15360.24%660.00%
philipp hachtmannphilipp hachtmann9236.22%110.00%
david hildenbranddavid hildenbrand62.36%110.00%
michael holzheumichael holzheu20.79%110.00%
hans-joachim pichthans-joachim picht10.39%110.00%
Total254100.00%10100.00%
Directory: arch/s390/mm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.