Move clock_time into libsys

Change-Id: Ibc5034617e6f6581de7c4a166ca075b3c357fa82
This commit is contained in:
David van Moolenbroek
2014-08-24 10:00:06 +00:00
parent 0dc5c83ec2
commit ad80a203db
26 changed files with 80 additions and 164 deletions

View File

@@ -46,6 +46,8 @@ int env_parse(const char *env, const char *fmt, int field,
#define fkey_events(fkeys, sfkeys) fkey_ctl(FKEY_EVENTS, (fkeys), (sfkeys))
int fkey_ctl(int req, int *fkeys, int *sfkeys);
struct timespec;
int printf(const char *fmt, ...);
void kputc(int c);
__dead void panic(const char *fmt, ...)
@@ -64,6 +66,7 @@ u32_t tsc_64_to_micros(u64_t tsc);
u32_t tsc_to_micros(u32_t low, u32_t high);
u32_t tsc_get_khz(void);
u32_t micros_to_ticks(u32_t micros);
time_t clock_time(struct timespec *tv);
#if defined(__arm__)
void read_frclock(u32_t *frclk);
u32_t delta_frclock(u32_t base, u32_t cur);