Release 4.10 arch/x86/kernel/i8253.c
/*
* 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
| Person | Tokens | Prop | Commits | CommitProp |
thomas gleixner | thomas gleixner | 17 | 94.44% | 2 | 66.67% |
john stultz | john stultz | 1 | 5.56% | 1 | 33.33% |
| Total | 18 | 100.00% | 3 | 100.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
| Person | Tokens | Prop | Commits | CommitProp |
john stultz | john stultz | 21 | 61.76% | 2 | 33.33% |
thomas gleixner | thomas gleixner | 6 | 17.65% | 2 | 33.33% |
viresh kumar | viresh kumar | 5 | 14.71% | 1 | 16.67% |
russell king | russell king | 2 | 5.88% | 1 | 16.67% |
| Total | 34 | 100.00% | 6 | 100.00% |
arch_initcall(init_pit_clocksource);
#endif /* !CONFIG_X86_64 */
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
thomas gleixner | thomas gleixner | 37 | 40.66% | 5 | 29.41% |
john stultz | john stultz | 35 | 38.46% | 4 | 23.53% |
viresh kumar | viresh kumar | 5 | 5.49% | 1 | 5.88% |
ralf baechle | ralf baechle | 4 | 4.40% | 2 | 11.76% |
arnd bergmann | arnd bergmann | 3 | 3.30% | 1 | 5.88% |
jaswinder singh rajput | jaswinder singh rajput | 3 | 3.30% | 1 | 5.88% |
russell king | russell king | 2 | 2.20% | 1 | 5.88% |
paul gortmaker | paul gortmaker | 1 | 1.10% | 1 | 5.88% |
dave jones | dave jones | 1 | 1.10% | 1 | 5.88% |
| Total | 91 | 100.00% | 17 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.