cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/kernel/apic/probe_64.c

/*
 * Copyright 2004 James Cleverdon, IBM.
 * Subject to the GNU Public License, v.2
 *
 * Generic APIC sub-arch probe layer.
 *
 * Hacked for x86-64 by James Cleverdon from i386 architecture code by
 * Martin Bligh, Andi Kleen, James Bottomley, John Stultz, and
 * James Cleverdon.
 */
#include <linux/threads.h>
#include <linux/cpumask.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/ctype.h>
#include <linux/hardirq.h>
#include <linux/dmar.h>

#include <asm/smp.h>
#include <asm/apic.h>
#include <asm/ipi.h>
#include <asm/setup.h>

/*
 * Check the APIC IDs in bios_cpu_apicid and choose the APIC mode.
 */

void __init default_setup_apic_routing(void) { struct apic **drv; enable_IR_x2apic(); for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { if ((*drv)->probe && (*drv)->probe()) { if (apic != *drv) { apic = *drv; pr_info("Switched APIC routing to %s.\n", apic->name); } break; } } if (x86_platform.apic_post_init) x86_platform.apic_post_init(); }

Contributors

PersonTokensPropCommitsCommitProp
Suresh B. Siddha5361.63%440.00%
James Cleverdon1517.44%110.00%
Yinghai Lu89.30%220.00%
Ido Yariv78.14%110.00%
Ingo Molnar33.49%220.00%
Total86100.00%10100.00%

/* Same for both flat and physical. */
void apic_send_IPI_self(int vector) { __default_send_IPI_shortcut(APIC_DEST_SELF, vector, APIC_DEST_PHYSICAL); }

Contributors

PersonTokensPropCommitsCommitProp
James Cleverdon1588.24%133.33%
Suresh B. Siddha15.88%133.33%
Ingo Molnar15.88%133.33%
Total17100.00%3100.00%


int __init default_acpi_madt_oem_check(char *oem_id, char *oem_table_id) { struct apic **drv; for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { if ((*drv)->acpi_madt_oem_check(oem_id, oem_table_id)) { if (apic != *drv) { apic = *drv; pr_info("Setting APIC routing to %s.\n", apic->name); } return 1; } } return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Jack Steiner3341.25%120.00%
Suresh B. Siddha2733.75%120.00%
Yinghai Lu1721.25%120.00%
Ingo Molnar33.75%240.00%
Total80100.00%5100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Suresh B. Siddha8136.49%522.73%
James Cleverdon5223.42%14.55%
Jack Steiner3616.22%29.09%
Yinghai Lu3214.41%522.73%
Ingo Molnar114.95%627.27%
Ido Yariv73.15%14.55%
Jan Beulich20.90%14.55%
Paul Gortmaker10.45%14.55%
Total222100.00%22100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.