cregit-Linux how code gets into the kernel

Release 4.10 arch/x86/kernel/time.c

Directory: arch/x86/kernel
/*
 *  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

PersonTokensPropCommitsCommitProp
andi kleenandi kleen5045.87%220.00%
zwane mwaikambozwane mwaikambo4036.70%110.00%
zachary amsdenzachary amsden65.50%110.00%
glauber de oliveira costaglauber de oliveira costa43.67%110.00%
h. peter anvinh. peter anvin43.67%220.00%
anton blanchardanton blanchard32.75%110.00%
andy lutomirskiandy lutomirski10.92%110.00%
thomas gleixnerthomas gleixner10.92%110.00%
Total109100.00%10100.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

PersonTokensPropCommitsCommitProp
pre-gitpre-git834.78%342.86%
thomas gleixnerthomas gleixner730.43%228.57%
john stultzjohn stultz521.74%114.29%
linus torvaldslinus torvalds313.04%114.29%
Total23100.00%7100.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

PersonTokensPropCommitsCommitProp
thomas gleixnerthomas gleixner1669.57%150.00%
andy shevchenkoandy shevchenko730.43%150.00%
Total23100.00%2100.00%

/* Default timer init function */
void __init hpet_time_init(void) { if (!hpet_enable()) setup_pit_timer(); setup_default_timer_irq(); }

Contributors

PersonTokensPropCommitsCommitProp
andrew mortonandrew morton1365.00%133.33%
thomas gleixnerthomas gleixner735.00%266.67%
Total20100.00%3100.00%


static __init void x86_late_time_init(void) { x86_init.timers.timer_init(); tsc_init(); }

Contributors

PersonTokensPropCommitsCommitProp
thomas gleixnerthomas gleixner1684.21%375.00%
andrew mortonandrew morton315.79%125.00%
Total19100.00%4100.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

PersonTokensPropCommitsCommitProp
pre-gitpre-git866.67%360.00%
andrew mortonandrew morton325.00%120.00%
thomas gleixnerthomas gleixner18.33%120.00%
Total12100.00%5100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
thomas gleixnerthomas gleixner9633.33%824.24%
andi kleenandi kleen5619.44%39.09%
zwane mwaikambozwane mwaikambo4515.62%13.03%
pre-gitpre-git248.33%618.18%
andrew mortonandrew morton217.29%13.03%
andy shevchenkoandy shevchenko72.43%13.03%
zachary amsdenzachary amsden62.08%13.03%
john stultzjohn stultz51.74%13.03%
h. peter anvinh. peter anvin41.39%26.06%
glauber de oliveira costaglauber de oliveira costa41.39%13.03%
paul gortmakerpaul gortmaker31.04%13.03%
linus torvaldslinus torvalds31.04%13.03%
ralf baechleralf baechle31.04%13.03%
jaswinder singh rajputjaswinder singh rajput31.04%13.03%
anton blanchardanton blanchard31.04%13.03%
andy lutomirskiandy lutomirski31.04%26.06%
matthew wilcoxmatthew wilcox20.69%13.03%
Total288100.00%33100.00%
Directory: arch/x86/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.