// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2005-2017 Andes Technology Corporation #ifndef __NDS32_DELAY_H__ #define __NDS32_DELAY_H__ #include <asm/param.h> /* There is no clocksource cycle counter in the CPU. */
static inline void __delay(unsigned long loops) { __asm__ __volatile__(".align 2\n" "1:\n" "\taddi\t%0, %0, -1\n" "\tbgtz\t%0, 1b\n" :"=r"(loops) :"0"(loops)); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 14 | 100.00% | 1 | 100.00% |
Total | 14 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 65 | 100.00% | 1 | 100.00% |
Total | 65 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Greentime Hu | 127 | 100.00% | 1 | 100.00% |
Total | 127 | 100.00% | 1 | 100.00% |