[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
This commit is contained in:
Jordan Crouse 2008-08-28 23:12:34 +00:00
parent b746178e65
commit fc58b7ee66
1 changed files with 10 additions and 0 deletions

View File

@ -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