cregit-Linux how code gets into the kernel

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

// SPDX-License-Identifier: GPL-2.0
/*
 * 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 Luck1365.00%125.00%
Magnus Damm420.00%125.00%
Thomas Gleixner210.00%125.00%
Christoph 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 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 Lameter1034.48%225.00%
John Hawkes517.24%112.50%
Jack Steiner413.79%112.50%
Tony Luck310.34%112.50%
John Stultz310.34%112.50%
Andrew Lutomirski26.90%112.50%
Jes Sorensen26.90%112.50%
Total29100.00%8100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
John Hawkes5531.61%16.67%
Jes Sorensen3318.97%16.67%
Tony Luck3318.97%16.67%
Christoph Lameter2916.67%320.00%
David Mosberger-Tang52.87%213.33%
Magnus Damm42.30%16.67%
Jack Steiner42.30%16.67%
John Stultz31.72%16.67%
Patrick Gefre31.72%16.67%
Andrew Lutomirski21.15%16.67%
Thomas Gleixner21.15%16.67%
Greg Kroah-Hartman10.57%16.67%
Total174100.00%15100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.