cregit-Linux how code gets into the kernel

Release 4.12 arch/x86/xen/smp_hvm.c

Directory: arch/x86/xen
#include <asm/smp.h>

#include <xen/events.h>

#include "xen-ops.h"
#include "smp.h"



static void __init xen_hvm_smp_prepare_boot_cpu(void) { BUG_ON(smp_processor_id() != 0); native_smp_prepare_boot_cpu(); /* * Setup vcpu_info for boot CPU. */ xen_vcpu_setup(0); /* * The alternative logic (which patches the unlock/lock) runs before * the smp bootup up code is activated. Hence we need to set this up * the core kernel is being patched. Otherwise we will have only * modules patched but not core code. */ xen_init_spinlocks(); }

Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov30100.00%1100.00%
Total30100.00%1100.00%


static void __init xen_hvm_smp_prepare_cpus(unsigned int max_cpus) { native_smp_prepare_cpus(max_cpus); WARN_ON(xen_smp_intr_init(0)); xen_init_lock_cpu(0); }

Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov29100.00%1100.00%
Total29100.00%1100.00%

#ifdef CONFIG_HOTPLUG_CPU
static void xen_hvm_cpu_die(unsigned int cpu) { if (common_cpu_die(cpu) == 0) { xen_smp_intr_free(cpu); xen_uninit_lock_cpu(cpu); xen_teardown_timer(cpu); } }

Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov36100.00%1100.00%
Total36100.00%1100.00%

#else
static void xen_hvm_cpu_die(unsigned int cpu) { BUG(); }

Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov13100.00%1100.00%
Total13100.00%1100.00%

#endif
void __init xen_hvm_smp_init(void) { if (!xen_have_vector_callback) return; smp_ops.smp_prepare_cpus = xen_hvm_smp_prepare_cpus; smp_ops.smp_send_reschedule = xen_smp_send_reschedule; smp_ops.cpu_die = xen_hvm_cpu_die; smp_ops.send_call_func_ipi = xen_smp_send_call_function_ipi; smp_ops.send_call_func_single_ipi = xen_smp_send_call_function_single_ipi; smp_ops.smp_prepare_boot_cpu = xen_hvm_smp_prepare_boot_cpu; }

Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov4488.00%150.00%
Boris Ostrovsky612.00%150.00%
Total50100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Vitaly Kuznetsov16894.92%150.00%
Boris Ostrovsky95.08%150.00%
Total177100.00%2100.00%
Directory: arch/x86/xen
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.