genode/repos/base/src/lib/timeout/arm/timer_connection_time.cc
Norman Feske bf62d6b896 Move timer from os to base repository
Since the timer and timeout handling is part of the base library (the
dynamic linker), it belongs to the base repository.

Besides moving the timer and its related infrastructure (alarm, timeout
libs, tests) to the base repository, this patch also moves the timer
from the 'drivers' subdirectory directly to 'src' and disamibuates the
timer's build locations for the various kernels. Otherwise the different
timer implementations could interfere with each other when using one
build directory with multiple kernels.

Note that this patch changes the include paths for the former os/timer,
os/alarm.h, os/duration.h, and os/timed_semaphore.h to base/.

Issue #3101
2019-01-14 12:33:57 +01:00

33 lines
879 B
C++

/*
* \brief Connection to timer service and timeout scheduler
* \author Martin Stein
* \date 2016-11-04
*
* On ARM, we do not have a component-local hardware time-source. The ARM
* performance counter has no reliable frequency as the ARM idle command
* halts the counter. Thus, we do not do local time interpolation.
*/
/*
* Copyright (C) 2016-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
/* Genode includes */
#include <timer_session/connection.h>
#include <base/internal/globals.h>
using namespace Genode;
using namespace Genode::Trace;
Timestamp Timer::Connection::_timestamp() { return 0ULL; }
void Timer::Connection::_update_real_time() { }
Duration Timer::Connection::curr_time()
{
return Duration(Microseconds(elapsed_us()));
}