cregit-Linux how code gets into the kernel

Release 4.7 arch/ia64/sn/kernel/sn2/timer.c

/*
 * linux/arch/ia64/sn/kernel/sn2/timer.c
 *
 * Copyright (C) 2003 Silicon Graphics, Inc.
 * Copyright (C) 2003 Hewlett-Packard Co
 *      David Mosberger <davidm@hpl.hp.com>: updated for new timer-interpolation infrastructure
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/interrupt.h>
#include <linux/clocksource.h>

#include <asm/hw_irq.h>
#include <asm/timex.h>

#include <asm/sn/leds.h>
#include <asm/sn/shub_mmr.h>
#include <asm/sn/clksupport.h>

extern unsigned long sn_rtc_cycles_per_second;


static cycle_t read_sn2(struct clocksource *cs) { return (cycle_t)readq(RTC_COUNTER_ADDR); }

Contributors

PersonTokensPropCommitsCommitProp
tony lucktony luck1575.00%133.33%
magnus dammmagnus damm420.00%133.33%
christoph lameterchristoph lameter15.00%133.33%
Total20100.00%3100.00%

static struct clocksource clocksource_sn2 = { .name = "sn2_rtc", .rating = 450, .read = read_sn2, .mask = (1LL << 55) - 1, .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; /* * sn udelay uses the RTC instead of the ITC because the ITC is not * synchronized across all CPUs, and the thread may migrate to another CPU * if preemption is enabled. */
static void ia64_sn_udelay (unsigned long usecs) { unsigned long start = rtc_time(); unsigned long end = start + usecs * sn_rtc_cycles_per_second / 1000000; while (time_before((unsigned long)rtc_time(), end)) cpu_relax(); }

Contributors

PersonTokensPropCommitsCommitProp
john hawkesjohn hawkes46100.00%1100.00%
Total46100.00%1100.00%


void __init sn_timer_init(void) { clocksource_sn2.archdata.fsys_mmio = RTC_COUNTER_ADDR; clocksource_register_hz(&clocksource_sn2, sn_rtc_cycles_per_second); ia64_udelay = &ia64_sn_udelay; }

Contributors

PersonTokensPropCommitsCommitProp
christoph lameterchristoph lameter1034.48%225.00%
john hawkesjohn hawkes517.24%112.50%
jack steinerjack steiner413.79%112.50%
john stultzjohn stultz310.34%112.50%
tony lucktony luck310.34%112.50%
andy lutomirskiandy lutomirski26.90%112.50%
jes sorensenjes sorensen26.90%112.50%
Total29100.00%8100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
john hawkesjohn hawkes5531.79%17.69%
tony lucktony luck3520.23%17.69%
jes sorensenjes sorensen3319.08%17.69%
christoph lameterchristoph lameter2916.76%323.08%
david mosbergerdavid mosberger52.89%215.38%
jack steinerjack steiner42.31%17.69%
magnus dammmagnus damm42.31%17.69%
john stultzjohn stultz31.73%17.69%
patrick gefrepatrick gefre31.73%17.69%
andy lutomirskiandy lutomirski21.16%17.69%
Total173100.00%13100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}