Commit deb70a33 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

cobalt/tick: dovetail: add placeholders for tick management

Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 0f9ce985
/*
* SPDX-License-Identifier: GPL-2.0
*/
#ifndef _COBALT_KERNEL_IPIPE_TICK_H
#define _COBALT_KERNEL_IPIPE_TICK_H
int pipeline_install_tick_proxy(void);
void pipeline_uninstall_tick_proxy(void);
#endif /* !_COBALT_KERNEL_IPIPE_TICK_H */
......@@ -2,4 +2,4 @@ ccflags-y += -I$(srctree)/kernel
obj-y += pipeline.o
pipeline-y := init.o kevents.o sched.o
pipeline-y := init.o kevents.o sched.o tick.o
/*
* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2001,2002,2003,2007,2012 Philippe Gerum <rpm@xenomai.org>.
* Copyright (C) 2004 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
*/
#include <linux/tick.h>
#include <cobalt/kernel/intr.h>
#include <pipeline/tick.h>
int pipeline_install_tick_proxy(void)
{
int ret;
ret = pipeline_request_timer_ipi(xnintr_core_clock_handler);
if (ret)
return ret;
/* Install the proxy tick device */
TODO(); ret = 0;
if (ret)
goto fail_proxy;
return 0;
fail_proxy:
pipeline_free_timer_ipi();
return ret;
}
void pipeline_uninstall_tick_proxy(void)
{
/* Uninstall the proxy tick device. */
TODO();
pipeline_free_timer_ipi();
}
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