cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/kernel/i8253.c

Directory: arch/x86/kernel
// SPDX-License-Identifier: GPL-2.0
/*
 * 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 Gleixner18100.00%2100.00%
Total18100.00%2100.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 Gleixner3841.30%527.78%
John Stultz3436.96%422.22%
Viresh Kumar55.43%15.56%
Ralf Bächle44.35%211.11%
Arnd Bergmann33.26%15.56%
Jaswinder Singh Rajput33.26%15.56%
Russell King22.17%15.56%
Paul Gortmaker11.09%15.56%
Dave Jones11.09%15.56%
Greg Kroah-Hartman11.09%15.56%
Total92100.00%18100.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.