Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / riscv / include / asm / delay.h
blobcbb0c9eb96cb7e484b43e880a81c8ed9be8d0929
1 /*
2 * Copyright (C) 2009 Chen Liqin <liqin.chen@sunplusct.com>
3 * Copyright (C) 2016 Regents of the University of California
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation, version 2.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef _ASM_RISCV_DELAY_H
16 #define _ASM_RISCV_DELAY_H
18 extern unsigned long riscv_timebase;
20 #define udelay udelay
21 extern void udelay(unsigned long usecs);
23 #define ndelay ndelay
24 extern void ndelay(unsigned long nsecs);
26 extern void __delay(unsigned long cycles);
28 #endif /* _ASM_RISCV_DELAY_H */