cregit-Linux how code gets into the kernel

Release 4.10 arch/x86/kernel/i8253.c

Directory: arch/x86/kernel
/*
 * 8253/PIT functions
 *
 */
#include <linux/clockchips.h>
#include <linux/init.h>
#include <linux/timex.h>
#include <linux/i8253.h>

#include <asm/hpet.h>
#include <asm/time.h>
#include <asm/smp.h>

/*
 * HPET replaces the PIT, when enabled. So we need to know, which of
 * the two timers is used
 */

struct clock_event_device *global_clock_event;


void __init setup_pit_timer(void) { clockevent_i8253_init(true); global_clock_event = &i8253_clockevent; }

Contributors

PersonTokensPropCommitsCommitProp
thomas gleixnerthomas gleixner1794.44%266.67%
john stultzjohn stultz15.56%133.33%
Total18100.00%3100.00%

#ifndef CONFIG_X86_64
static int __init init_pit_clocksource(void) { /* * Several reasons not to register PIT as a clocksource: * * - On SMP PIT does not scale due to i8253_lock * - when HPET is enabled * - when local APIC timer is active (PIT is switched off) */ if (num_possible_cpus() > 1 || is_hpet_enabled() || !clockevent_state_periodic(&i8253_clockevent)) return 0; return clocksource_i8253_init(); }

Contributors

PersonTokensPropCommitsCommitProp
john stultzjohn stultz2161.76%233.33%
thomas gleixnerthomas gleixner617.65%233.33%
viresh kumarviresh kumar514.71%116.67%
russell kingrussell king25.88%116.67%
Total34100.00%6100.00%

arch_initcall(init_pit_clocksource); #endif /* !CONFIG_X86_64 */

Overall Contributors

PersonTokensPropCommitsCommitProp
thomas gleixnerthomas gleixner3740.66%529.41%
john stultzjohn stultz3538.46%423.53%
viresh kumarviresh kumar55.49%15.88%
ralf baechleralf baechle44.40%211.76%
arnd bergmannarnd bergmann33.30%15.88%
jaswinder singh rajputjaswinder singh rajput33.30%15.88%
russell kingrussell king22.20%15.88%
paul gortmakerpaul gortmaker11.10%15.88%
dave jonesdave jones11.10%15.88%
Total91100.00%17100.00%
Directory: arch/x86/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.