Move cpu time retrieval to separate grub_util_get_cpu_time_ms

and remove export.h.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-15 13:13:53 +02:00
parent 23934da26e
commit 7e45abcef4
9 changed files with 50 additions and 16 deletions

View file

@ -1,7 +0,0 @@
#ifdef GRUB_SYMBOL_GENERATOR
void EXPORT_FUNC (sysconf) (void);
void EXPORT_FUNC (times) (void);
#else
#include <sys/times.h>
#include <unistd.h>
#endif

View file

@ -50,6 +50,8 @@ void EXPORT_FUNC(grub_util_warn) (const char *fmt, ...) __attribute__ ((format (
void EXPORT_FUNC(grub_util_info) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
void EXPORT_FUNC(grub_util_error) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2), noreturn));
grub_uint64_t EXPORT_FUNC (grub_util_get_cpu_time_ms) (void);
extern char * canonicalize_file_name (const char *path);
#ifdef HAVE_DEVICE_MAPPER