Commit cb175c28 authored by hongzha1 via Xenomai's avatar hongzha1 via Xenomai Committed by Jan Kiszka

cobalt/tick: dovetail: implement pipeline_timer_name()

Get the name of real device controlled by the proxy tick device.
Signed-off-by: default avatarhongzha1 <hongzhan.chen@intel.com>
parent 4554ecd1
......@@ -21,16 +21,7 @@ static inline u64 pipeline_read_cycle_counter(void)
void pipeline_set_timer_shot(unsigned long cycles);
static inline const char *pipeline_timer_name(void)
{
/*
* Return the name of the current clock event chip, which is
* the real device controlled by the proxy tick device.
*/
TODO();
return "?";
}
const char *pipeline_timer_name(void);
static inline const char *pipeline_clock_name(void)
{
......
......@@ -14,6 +14,18 @@
static DEFINE_PER_CPU(struct clock_proxy_device *, proxy_device);
const char *pipeline_timer_name(void)
{
struct clock_proxy_device *dev = __this_cpu_read(proxy_device);
struct clock_event_device *real_dev = dev->real_device;
/*
* Return the name of the current clock event chip, which is
* the real device controlled by the proxy tick device.
*/
return real_dev->name;
}
void pipeline_set_timer_shot(unsigned long cycles)
{
struct clock_proxy_device *dev = __this_cpu_read(proxy_device);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment