Update due to API changes (timecounters)

This commit is contained in:
Sebastian Huber
2015-05-15 14:29:57 +02:00
parent f2cb584a61
commit 8eaa39fcef
7 changed files with 15 additions and 589 deletions

View File

@@ -71,9 +71,6 @@ int hz;
int tick;
int maxusers; /* base tunable */
struct bintime boottimebin;
struct timeval boottime;
static SYSCTL_NODE(_kern, OID_AUTO, smp, CTLFLAG_RD|CTLFLAG_CAPRD, NULL,
"Kernel SMP");
@@ -103,9 +100,6 @@ rtems_bsd_initialize(void)
maxusers = 1;
maxid_maxcpus = (int) rtems_get_processor_count();
gettimeofday(&boottime, NULL);
timeval2bintime(&boottime, &boottimebin);
mkdir("/etc", S_IRWXU | S_IRWXG | S_IRWXO);
sc = rtems_timer_initiate_server(

View File

@@ -52,45 +52,3 @@ tvtohz(struct timeval *tv)
return (int) _Timespec_To_ticks( &ts );
}
void
binuptime(struct bintime *bt)
{
struct timeval tv;
rtems_clock_get_uptime_timeval(&tv);
timeval2bintime(&tv, bt);
}
void
bintime(struct bintime *bt)
{
struct timeval tv;
gettimeofday(&tv, NULL);
timeval2bintime(&tv, bt);
}
void
microtime(struct timeval *tvp)
{
gettimeofday(tvp, NULL);
}
void
getbinuptime(struct bintime *bt)
{
binuptime(bt);
}
void
getmicrouptime(struct timeval *tvp)
{
rtems_clock_get_uptime_timeval(tvp);
}
void
getmicrotime(struct timeval *tvp)
{
microtime(tvp);
}