[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:
@ -27,6 +27,10 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** @file libc/time.c
|
||||||
|
* @brief General Time Functions
|
||||||
|
*/
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <libpayload.h>
|
#include <libpayload.h>
|
||||||
#include <arch/rdtsc.h>
|
#include <arch/rdtsc.h>
|
||||||
@ -110,6 +114,12 @@ static void gettimeofday_init(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#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)
|
int gettimeofday(struct timeval *tv, void *tz)
|
||||||
{
|
{
|
||||||
/* Call the gtod init when we need it - this keeps
|
/* Call the gtod init when we need it - this keeps
|
||||||
|
Reference in New Issue
Block a user