cregit-Linux how code gets into the kernel

Release 4.14 arch/cris/kernel/time.c

Directory: arch/cris/kernel
// SPDX-License-Identifier: GPL-2.0
/*
 *  linux/arch/cris/kernel/time.c
 *
 *  Copyright (C) 1991, 1992, 1995  Linus Torvalds
 *  Copyright (C) 1999, 2000, 2001 Axis Communications AB
 *
 * 1994-07-02    Alan Modra
 *      fixed set_rtc_mmss, fixed time.year for >= 2000, new mktime
 * 1995-03-26    Markus Kuhn
 *      fixed 500 ms bug at call to set_rtc_mmss, fixed DS12887
 *      precision CMOS clock update
 * 1996-05-03    Ingo Molnar
 *      fixed time warps in do_[slow|fast]_gettimeoffset()
 * 1997-09-10   Updated NTP code according to technical memorandum Jan '96
 *              "A Kernel Model for Precision Timekeeping" by Dave Mills
 *
 * Linux/CRIS specific code:
 *
 * Authors:    Bjorn Wesen
 *             Johan Adolfsson
 *
 */

#include <linux/errno.h>
#include <linux/module.h>
#include <linux/param.h>
#include <linux/jiffies.h>
#include <linux/bcd.h>
#include <linux/timex.h>
#include <linux/init.h>
#include <linux/profile.h>
#include <linux/sched/clock.h>



#define D(x)


#define TICK_SIZE tick

extern unsigned long loops_per_jiffy; /* init/main.c */

unsigned long loops_per_usec;

extern void cris_profile_sample(struct pt_regs* regs);


void cris_do_profile(struct pt_regs* regs) { #ifdef CONFIG_SYSTEM_PROFILER cris_profile_sample(regs); #endif #ifdef CONFIG_PROFILING profile_tick(CPU_PROFILING); #endif }

Contributors

PersonTokensPropCommitsCommitProp
Mikael Starvik2686.67%150.00%
Jesper Nilsson413.33%150.00%
Total30100.00%2100.00%

#ifndef CONFIG_GENERIC_SCHED_CLOCK
unsigned long long sched_clock(void) { return (unsigned long long)jiffies * (NSEC_PER_SEC / HZ) + get_ns_in_jiffie(); }

Contributors

PersonTokensPropCommitsCommitProp
Jesper Nilsson26100.00%2100.00%
Total26100.00%2100.00%

#endif
static int __init init_udelay(void) { loops_per_usec = (loops_per_jiffy * HZ) / 1000000; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Andrew Morton22100.00%1100.00%
Total22100.00%1100.00%

__initcall(init_udelay);

Overall Contributors

PersonTokensPropCommitsCommitProp
Mikael Starvik4429.93%214.29%
Andrew Morton4027.21%214.29%
Jesper Nilsson3725.17%428.57%
Linus Torvalds149.52%17.14%
Rabin Vincent53.40%17.14%
Arnaldo Carvalho de Melo32.04%17.14%
Tim Schmielau21.36%17.14%
Greg Kroah-Hartman10.68%17.14%
Ingo Molnar10.68%17.14%
Total147100.00%14100.00%
Directory: arch/cris/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.