summaryrefslogtreecommitdiffstats
path: root/pintos-progos/devices/timer.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
committermanuel <manuel@mausz.at>2012-03-27 11:51:08 +0200
commit4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch)
tree868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /pintos-progos/devices/timer.h
parenteae0bd57f0a26314a94785061888d193d186944a (diff)
downloadprogos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.gz
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.bz2
progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.zip
reorganize file structure to match the upstream requirements
Diffstat (limited to 'pintos-progos/devices/timer.h')
-rw-r--r--pintos-progos/devices/timer.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/pintos-progos/devices/timer.h b/pintos-progos/devices/timer.h
deleted file mode 100644
index cd3d6bb..0000000
--- a/pintos-progos/devices/timer.h
+++ /dev/null
@@ -1,29 +0,0 @@
1#ifndef DEVICES_TIMER_H
2#define DEVICES_TIMER_H
3
4#include <round.h>
5#include <stdint.h>
6
7/* Number of timer interrupts per second. */
8#define TIMER_FREQ 100
9
10void timer_init (void);
11void timer_calibrate (void);
12
13int64_t timer_ticks (void);
14int64_t timer_elapsed (int64_t);
15
16/* Sleep and yield the CPU to other threads. */
17void timer_sleep (int64_t ticks);
18void timer_msleep (int64_t milliseconds);
19void timer_usleep (int64_t microseconds);
20void timer_nsleep (int64_t nanoseconds);
21
22/* Busy waits. */
23void timer_mdelay (int64_t milliseconds);
24void timer_udelay (int64_t microseconds);
25void timer_ndelay (int64_t nanoseconds);
26
27void timer_print_stats (void);
28
29#endif /* devices/timer.h */