summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-08-28 23:12:34 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-08-28 23:12:34 +0000
commitfc58b7ee667fb81df9a747df3da83ca5b0b8c304 (patch)
tree3be5269e7346c5cbfc8b9071a1eb2a2cbe6cd722
parentb746178e659df1added87d7f5011f79114fd60b1 (diff)
downloadcoreboot-fc58b7ee667fb81df9a747df3da83ca5b0b8c304.tar.xz
[PATCH]: libpayload: Document time functions
No code changes. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Jordan Crouse <jordan.crouse@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3553 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--payloads/libpayload/libc/time.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/time.c b/payloads/libpayload/libc/time.c
index a04534554c..b49879b9d8 100644
--- a/payloads/libpayload/libc/time.c
+++ b/payloads/libpayload/libc/time.c
@@ -27,6 +27,10 @@
* SUCH DAMAGE.
*/
+/** @file libc/time.c
+ * @brief General Time Functions
+ */
+
#include <config.h>
#include <libpayload.h>
#include <arch/rdtsc.h>
@@ -110,6 +114,12 @@ static void gettimeofday_init(void)
}
#endif
+/**
+ * Return the current time broken into a timeval structure
+ * @param tv A pointer to a timeval structure
+ * @param tz Added for compatability - not used
+ * @return 0 for success
+ */
int gettimeofday(struct timeval *tv, void *tz)
{
/* Call the gtod init when we need it - this keeps