cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/paravirt/setup.c

/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2013 Cavium, Inc.
 */

#include <linux/kernel.h>
#include <linux/kvm_para.h>

#include <asm/reboot.h>
#include <asm/bootinfo.h>
#include <asm/smp-ops.h>
#include <asm/time.h>

extern const struct plat_smp_ops paravirt_smp_ops;


const char *get_system_type(void) { return "MIPS Para-Virtualized Guest"; }

Contributors

PersonTokensPropCommitsCommitProp
David Daney12100.00%1100.00%
Total12100.00%1100.00%


void __init plat_time_init(void) { mips_hpt_frequency = kvm_hypercall0(KVM_HC_MIPS_GET_CLOCK_FREQ); preset_lpj = mips_hpt_frequency / (2 * HZ); }

Contributors

PersonTokensPropCommitsCommitProp
David Daney25100.00%1100.00%
Total25100.00%1100.00%


static void pv_machine_halt(void) { kvm_hypercall0(KVM_HC_MIPS_EXIT_VM); }

Contributors

PersonTokensPropCommitsCommitProp
David Daney13100.00%1100.00%
Total13100.00%1100.00%

/* * Early entry point for arch setup */
void __init prom_init(void) { int i; int argc = fw_arg0; char **argv = (char **)fw_arg1; #ifdef CONFIG_32BIT set_io_port_base(KSEG1ADDR(0x1e000000)); #else /* CONFIG_64BIT */ set_io_port_base(PHYS_TO_XKSEG_UNCACHED(0x1e000000)); #endif for (i = 0; i < argc; i++) { strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); if (i < argc - 1) strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE); } _machine_halt = pv_machine_halt; register_smp_ops(&paravirt_smp_ops); }

Contributors

PersonTokensPropCommitsCommitProp
David Daney106100.00%1100.00%
Total106100.00%1100.00%


void __init plat_mem_setup(void) { /* Do nothing, the "mem=???" parser handles our memory. */ }

Contributors

PersonTokensPropCommitsCommitProp
David Daney9100.00%1100.00%
Total9100.00%1100.00%


void __init prom_free_prom_memory(void) { }

Contributors

PersonTokensPropCommitsCommitProp
David Daney7100.00%1100.00%
Total7100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
David Daney19799.49%150.00%
Matt Redfearn10.51%150.00%
Total198100.00%2100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.