cregit-Linux how code gets into the kernel

Release 4.11 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 Gleixner1794.44%266.67%
John 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 Stultz2161.76%233.33%
Thomas Gleixner617.65%233.33%
Viresh Kumar514.71%116.67%
Russell King25.88%116.67%
Total34100.00%6100.00%

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

Overall Contributors

PersonTokensPropCommitsCommitProp
Thomas Gleixner3740.66%529.41%
John Stultz3538.46%423.53%
Viresh Kumar55.49%15.88%
Ralf Bächle44.40%211.76%
Arnd Bergmann33.30%15.88%
Jaswinder Singh Rajput33.30%15.88%
Russell King22.20%15.88%
Dave Jones11.10%15.88%
Paul Gortmaker11.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.
Created with cregit.