summaryrefslogtreecommitdiffstats
path: root/src/lib/delay.c
blob: 25f93acdcb589fabcd93038f286d709a464e0e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0-only */

#include <delay.h>
void mdelay(unsigned int msecs)
{
	unsigned int i;
	for (i = 0; i < msecs; i++)
		udelay(1000);
}
void delay(unsigned int secs)
{
	unsigned int i;
	for (i = 0; i < secs; i++)
		mdelay(1000);
}