cregit-Linux how code gets into the kernel

Release 4.10 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 u64 read_sn2(struct clocksource *cs) { return (u64)readq(RTC_COUNTER_ADDR); }

Contributors

PersonTokensPropCommitsCommitProp
tony lucktony luck1365.00%125.00%
magnus dammmagnus damm420.00%125.00%
thomas gleixnerthomas gleixner210.00%125.00%
christoph lameterchristoph lameter15.00%125.00%
Total20100.00%4100.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%
jes sorensenjes sorensen26.90%112.50%
andy lutomirskiandy lutomirski26.90%112.50%
Total29100.00%8100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
john hawkesjohn hawkes5531.79%17.14%
tony lucktony luck3319.08%17.14%
jes sorensenjes sorensen3319.08%17.14%
christoph lameterchristoph lameter2916.76%321.43%
david mosbergerdavid mosberger52.89%214.29%
magnus dammmagnus damm42.31%17.14%
jack steinerjack steiner42.31%17.14%
patrick gefrepatrick gefre31.73%17.14%
john stultzjohn stultz31.73%17.14%
andy lutomirskiandy lutomirski21.16%17.14%
thomas gleixnerthomas gleixner21.16%17.14%
Total173100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.