cregit-Linux how code gets into the kernel

Release 4.14 arch/ia64/include/asm/delay.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_IA64_DELAY_H

#define _ASM_IA64_DELAY_H

/*
 * Delay routines using a pre-computed "cycles/usec" value.
 *
 * Copyright (C) 1998, 1999 Hewlett-Packard Co
 *      David Mosberger-Tang <davidm@hpl.hp.com>
 * Copyright (C) 1999 VA Linux Systems
 * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
 * Copyright (C) 1999 Asit Mallick <asit.k.mallick@intel.com>
 * Copyright (C) 1999 Don Dugger <don.dugger@intel.com>
 */

#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/compiler.h>

#include <asm/intrinsics.h>
#include <asm/processor.h>


static __inline__ void ia64_set_itm (unsigned long val) { ia64_setreg(_IA64_REG_CR_ITM, val); ia64_srlz_d(); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1152.38%266.67%
Suresh B. Siddha1047.62%133.33%
Total21100.00%3100.00%


static __inline__ unsigned long ia64_get_itm (void) { unsigned long result; result = ia64_getreg(_IA64_REG_CR_ITM); ia64_srlz_d(); return result; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1762.96%266.67%
Suresh B. Siddha1037.04%133.33%
Total27100.00%3100.00%


static __inline__ void ia64_set_itv (unsigned long val) { ia64_setreg(_IA64_REG_CR_ITV, val); ia64_srlz_d(); }

Contributors

PersonTokensPropCommitsCommitProp
Suresh B. Siddha1047.62%125.00%
Linus Torvalds (pre-git)942.86%250.00%
Linus Torvalds29.52%125.00%
Total21100.00%4100.00%


static __inline__ unsigned long ia64_get_itv (void) { return ia64_getreg(_IA64_REG_CR_ITV); }

Contributors

PersonTokensPropCommitsCommitProp
David Mosberger-Tang1487.50%133.33%
Linus Torvalds (pre-git)212.50%266.67%
Total16100.00%3100.00%


static __inline__ void ia64_set_itc (unsigned long val) { ia64_setreg(_IA64_REG_AR_ITC, val); ia64_srlz_d(); }

Contributors

PersonTokensPropCommitsCommitProp
Suresh B. Siddha1047.62%133.33%
Linus Torvalds (pre-git)942.86%133.33%
David Mosberger-Tang29.52%133.33%
Total21100.00%3100.00%


static __inline__ unsigned long ia64_get_itc (void) { unsigned long result; result = ia64_getreg(_IA64_REG_AR_ITC); ia64_barrier(); #ifdef CONFIG_ITANIUM while (unlikely((__s32) result == -1)) { result = ia64_getreg(_IA64_REG_AR_ITC); ia64_barrier(); } #endif return result; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)3459.65%360.00%
Suresh B. Siddha2238.60%120.00%
Manik Raina11.75%120.00%
Total57100.00%5100.00%

extern void ia64_delay_loop (unsigned long loops);
static __inline__ void __delay (unsigned long loops) { if (unlikely(loops < 1)) return; ia64_delay_loop (loops - 1); }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)1864.29%250.00%
David Mosberger-Tang828.57%125.00%
Suresh B. Siddha27.14%125.00%
Total28100.00%4100.00%

extern void udelay (unsigned long usecs); #endif /* _ASM_IA64_DELAY_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)12452.77%327.27%
Suresh B. Siddha6628.09%19.09%
David Mosberger-Tang3615.32%327.27%
Manik Raina41.70%19.09%
Linus Torvalds20.85%19.09%
John Hawkes20.85%19.09%
Greg Kroah-Hartman10.43%19.09%
Total235100.00%11100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.