summaryrefslogtreecommitdiffstats
path: root/common/clock.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:16 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:16 +0200
commit98432d39255c9ff4894bf9917ead3e73a09a6649 (patch)
tree4fd77c84466f1a76ff52e05ed50d51b05cda6099 /common/clock.c
parentf35190d65b08d967ff4e64d69b48c513071fe811 (diff)
downloadbarebox-98432d39255c9ff4894bf9917ead3e73a09a6649.tar.gz
svn_rev_683
more cleanups, fix compiler warnings
Diffstat (limited to 'common/clock.c')
-rw-r--r--common/clock.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/common/clock.c b/common/clock.c
index 1383f8b..636d30b 100644
--- a/common/clock.c
+++ b/common/clock.c
@@ -57,8 +57,6 @@ uint32_t clocksource_hz2mult(uint32_t hz, uint32_t shift_constant)
int is_timeout(uint64_t start_ns, uint64_t time_offset_ns)
{
-// if (ctrlc ())
-// return -1;
if (start_ns + time_offset_ns < get_time_ns())
return 1;
@@ -66,14 +64,11 @@ int is_timeout(uint64_t start_ns, uint64_t time_offset_ns)
return 0;
}
-int udelay(unsigned long usecs)
+void udelay(unsigned long usecs)
{
uint64_t start = get_time_ns();
while(!is_timeout(start, usecs * 1000));
-// if (ctrlc ())
-// return -1;
- return 0;
}
void mdelay(unsigned long msecs)