diff options
| author | Michael Brown | 2012-05-04 18:53:23 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-05-04 18:54:31 +0200 |
| commit | 6ed905aba298136dee5911a33e9692c7bf23335b (patch) | |
| tree | 24bd13abb68a25388ae15d051afca5e63c9117cf /src/include/ipxe | |
| parent | [malloc] Allow Valgrind to be used when all assertions are enabled (diff) | |
| download | ipxe-6ed905aba298136dee5911a33e9692c7bf23335b.tar.gz ipxe-6ed905aba298136dee5911a33e9692c7bf23335b.tar.xz ipxe-6ed905aba298136dee5911a33e9692c7bf23335b.zip | |
[time] Add Linux time source using gettimeofday()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/linux/linux_time.h | 18 | ||||
| -rw-r--r-- | src/include/ipxe/time.h | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/include/ipxe/linux/linux_time.h b/src/include/ipxe/linux/linux_time.h new file mode 100644 index 000000000..93a257730 --- /dev/null +++ b/src/include/ipxe/linux/linux_time.h @@ -0,0 +1,18 @@ +#ifndef _IPXE_LINUX_TIME_H +#define _IPXE_LINUX_TIME_H + +/** @file + * + * Linux time source + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#ifdef TIME_LINUX +#define TIME_PREFIX_linux +#else +#define TIME_PREFIX_linux __linux_ +#endif + +#endif /* _IPXE_LINUX_TIME_H */ diff --git a/src/include/ipxe/time.h b/src/include/ipxe/time.h index c74959f8e..673fe098a 100644 --- a/src/include/ipxe/time.h +++ b/src/include/ipxe/time.h @@ -44,6 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); /* Include all architecture-independent time API headers */ #include <ipxe/null_time.h> +#include <ipxe/linux/linux_time.h> /* Include all architecture-dependent time API headers */ #include <bits/time.h> |
