Release 4.14 arch/score/include/asm/delay.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_SCORE_DELAY_H
#define _ASM_SCORE_DELAY_H
#include <asm-generic/param.h>
static inline void __delay(unsigned long loops)
{
/* 3 cycles per loop. */
__asm__ __volatile__ (
"1:\tsubi\t%0, 3\n\t"
"cmpz.c\t%0\n\t"
"ble\t1b\n\t"
: "=r" (loops)
: "0" (loops));
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 15 | 100.00% | 2 | 100.00% |
Total | 15 | 100.00% | 2 | 100.00% |
static inline void __udelay(unsigned long usecs)
{
unsigned long loops_per_usec;
loops_per_usec = (loops_per_jiffy * HZ) / 1000000;
__delay(usecs * loops_per_usec);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 32 | 100.00% | 2 | 100.00% |
Total | 32 | 100.00% | 2 | 100.00% |
#define udelay(usecs) __udelay(usecs)
#endif /* _ASM_SCORE_DELAY_H */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Chen Liqin | 66 | 98.51% | 3 | 75.00% |
Greg Kroah-Hartman | 1 | 1.49% | 1 | 25.00% |
Total | 67 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.