/* * include/asm-xtensa/delay.h * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 - 2005 Tensilica Inc. * */ #ifndef _XTENSA_DELAY_H #define _XTENSA_DELAY_H #include <asm/timex.h> #include <asm/param.h> extern unsigned long loops_per_jiffy;
static inline void __delay(unsigned long loops) { if (__builtin_constant_p(loops) && loops < 2) __asm__ __volatile__ ("nop"); else if (loops >= 2) /* 2 cycles per loop. */ __asm__ __volatile__ ("1: addi %0, %0, -2; bgeui %0, 2, 1b" : "+r" (loops)); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Max Filippov | 22 | 61.11% | 1 | 33.33% |
Chris Zankel | 12 | 33.33% | 1 | 33.33% |
Adrian Bunk | 2 | 5.56% | 1 | 33.33% |
Total | 36 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Chris Zankel | 39 | 73.58% | 1 | 33.33% |
Max Filippov | 12 | 22.64% | 1 | 33.33% |
Baruch Siach | 2 | 3.77% | 1 | 33.33% |
Total | 53 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Max Filippov | 30 | 96.77% | 1 | 50.00% |
Chris Zankel | 1 | 3.23% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Max Filippov | 33 | 100.00% | 1 | 100.00% |
Total | 33 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Max Filippov | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Max Filippov | 156 | 67.24% | 3 | 50.00% |
Chris Zankel | 71 | 30.60% | 1 | 16.67% |
Baruch Siach | 3 | 1.29% | 1 | 16.67% |
Adrian Bunk | 2 | 0.86% | 1 | 16.67% |
Total | 232 | 100.00% | 6 | 100.00% |