Release 4.10 arch/x86/kernel/time.c
/*
* Copyright (c) 1991,1992,1995 Linus Torvalds
* Copyright (c) 1994 Alan Modra
* Copyright (c) 1995 Markus Kuhn
* Copyright (c) 1996 Ingo Molnar
* Copyright (c) 1998 Andrea Arcangeli
* Copyright (c) 2002,2006 Vojtech Pavlik
* Copyright (c) 2003 Andi Kleen
*
*/
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/i8253.h>
#include <linux/time.h>
#include <linux/export.h>
#include <asm/vsyscall.h>
#include <asm/x86_init.h>
#include <asm/i8259.h>
#include <asm/timer.h>
#include <asm/hpet.h>
#include <asm/time.h>
#ifdef CONFIG_X86_64
__visible volatile unsigned long jiffies __cacheline_aligned = INITIAL_JIFFIES;
#endif
unsigned long profile_pc(struct pt_regs *regs)
{
unsigned long pc = instruction_pointer(regs);
if (!user_mode(regs) && in_lock_functions(pc)) {
#ifdef CONFIG_FRAME_POINTER
return *(unsigned long *)(regs->bp + sizeof(long));
#else
unsigned long *sp =
(unsigned long *)kernel_stack_pointer(regs);
/*
* Return address is either directly at stack pointer
* or above a saved flags. Eflags has bits 22-31 zero,
* kernel addresses don't.
*/
if (sp[0] >> 22)
return sp[0];
if (sp[1] >> 22)
return sp[1];
#endif
}
return pc;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
andi kleen | andi kleen | 50 | 45.87% | 2 | 20.00% |
zwane mwaikambo | zwane mwaikambo | 40 | 36.70% | 1 | 10.00% |
zachary amsden | zachary amsden | 6 | 5.50% | 1 | 10.00% |
glauber de oliveira costa | glauber de oliveira costa | 4 | 3.67% | 1 | 10.00% |
h. peter anvin | h. peter anvin | 4 | 3.67% | 2 | 20.00% |
anton blanchard | anton blanchard | 3 | 2.75% | 1 | 10.00% |
andy lutomirski | andy lutomirski | 1 | 0.92% | 1 | 10.00% |
thomas gleixner | thomas gleixner | 1 | 0.92% | 1 | 10.00% |
| Total | 109 | 100.00% | 10 | 100.00% |
EXPORT_SYMBOL(profile_pc);
/*
* Default timer interrupt handler for PIT/HPET
*/
static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
global_clock_event->event_handler(global_clock_event);
return IRQ_HANDLED;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 8 | 34.78% | 3 | 42.86% |
thomas gleixner | thomas gleixner | 7 | 30.43% | 2 | 28.57% |
john stultz | john stultz | 5 | 21.74% | 1 | 14.29% |
linus torvalds | linus torvalds | 3 | 13.04% | 1 | 14.29% |
| Total | 23 | 100.00% | 7 | 100.00% |
static struct irqaction irq0 = {
.handler = timer_interrupt,
.flags = IRQF_NOBALANCING | IRQF_IRQPOLL | IRQF_TIMER,
.name = "timer"
};
void __init setup_default_timer_irq(void)
{
if (!nr_legacy_irqs())
return;
setup_irq(0, &irq0);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
thomas gleixner | thomas gleixner | 16 | 69.57% | 1 | 50.00% |
andy shevchenko | andy shevchenko | 7 | 30.43% | 1 | 50.00% |
| Total | 23 | 100.00% | 2 | 100.00% |
/* Default timer init function */
void __init hpet_time_init(void)
{
if (!hpet_enable())
setup_pit_timer();
setup_default_timer_irq();
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
andrew morton | andrew morton | 13 | 65.00% | 1 | 33.33% |
thomas gleixner | thomas gleixner | 7 | 35.00% | 2 | 66.67% |
| Total | 20 | 100.00% | 3 | 100.00% |
static __init void x86_late_time_init(void)
{
x86_init.timers.timer_init();
tsc_init();
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
thomas gleixner | thomas gleixner | 16 | 84.21% | 3 | 75.00% |
andrew morton | andrew morton | 3 | 15.79% | 1 | 25.00% |
| Total | 19 | 100.00% | 4 | 100.00% |
/*
* Initialize TSC and delay the periodic timer init to
* late x86_late_time_init() so ioremap works.
*/
void __init time_init(void)
{
late_time_init = x86_late_time_init;
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
pre-git | pre-git | 8 | 66.67% | 3 | 60.00% |
andrew morton | andrew morton | 3 | 25.00% | 1 | 20.00% |
thomas gleixner | thomas gleixner | 1 | 8.33% | 1 | 20.00% |
| Total | 12 | 100.00% | 5 | 100.00% |
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
thomas gleixner | thomas gleixner | 96 | 33.33% | 8 | 24.24% |
andi kleen | andi kleen | 56 | 19.44% | 3 | 9.09% |
zwane mwaikambo | zwane mwaikambo | 45 | 15.62% | 1 | 3.03% |
pre-git | pre-git | 24 | 8.33% | 6 | 18.18% |
andrew morton | andrew morton | 21 | 7.29% | 1 | 3.03% |
andy shevchenko | andy shevchenko | 7 | 2.43% | 1 | 3.03% |
zachary amsden | zachary amsden | 6 | 2.08% | 1 | 3.03% |
john stultz | john stultz | 5 | 1.74% | 1 | 3.03% |
h. peter anvin | h. peter anvin | 4 | 1.39% | 2 | 6.06% |
glauber de oliveira costa | glauber de oliveira costa | 4 | 1.39% | 1 | 3.03% |
paul gortmaker | paul gortmaker | 3 | 1.04% | 1 | 3.03% |
linus torvalds | linus torvalds | 3 | 1.04% | 1 | 3.03% |
ralf baechle | ralf baechle | 3 | 1.04% | 1 | 3.03% |
jaswinder singh rajput | jaswinder singh rajput | 3 | 1.04% | 1 | 3.03% |
anton blanchard | anton blanchard | 3 | 1.04% | 1 | 3.03% |
andy lutomirski | andy lutomirski | 3 | 1.04% | 2 | 6.06% |
matthew wilcox | matthew wilcox | 2 | 0.69% | 1 | 3.03% |
| Total | 288 | 100.00% | 33 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.