/* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Delay routines using pre computed loops_per_jiffy value. * * vineetg: Feb 2012 * -Rewrote in "C" to avoid dealing with availability of H/w MPY * -Also reduced the num of MPY operations from 3 to 2 * * Amit Bhor: Codito Technologies 2004 */ #ifndef __ASM_ARC_UDELAY_H #define __ASM_ARC_UDELAY_H #include <asm/param.h> /* HZ */
static inline void __delay(unsigned long loops) { __asm__ __volatile__( " mov lp_count, %0 \n" " lp 1f \n" " nop \n" "1: \n" : : "r"(loops) : "lp_count"); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 14 | 100.00% | 2 | 100.00% |
Total | 14 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 34 | 89.47% | 1 | 50.00% |
Mischa Jonker | 4 | 10.53% | 1 | 50.00% |
Total | 38 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Vineet Gupta | 77 | 95.06% | 2 | 66.67% |
Mischa Jonker | 4 | 4.94% | 1 | 33.33% |
Total | 81 | 100.00% | 3 | 100.00% |