All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe  Gerum <rpm@xenomai.org>
To: xenomai@xenomai.org
Subject: [PATCH 3/3] cobalt/intr: pipeline: IRQ management code is pipeline-specific
Date: Wed, 16 Dec 2020 17:44:55 +0100	[thread overview]
Message-ID: <20201216164455.158920-4-rpm@xenomai.org> (raw)
In-Reply-To: <20201216164455.158920-1-rpm@xenomai.org>

From: Philippe Gerum <rpm@xenomai.org>

The way we request and manage interrupts depends on the underlying
pipeline interface.

As a matter of fact, Dovetail already deals with most of the logic
implemented by the xnintr layer, such as edge/level shared IRQs, fully
reusing the regular genirq interface for management. IRQ handlers with
Dovetail have regular signatures as well.

For the time being, let's move the entire xnintr layer to the I-pipe
specific section created earlier. We should be able to design the
abstract interface to IRQ management after this layer for the most
part, which we would connect to Dovetail eventually.

No functional change is introduced.

Signed-off-by: Philippe Gerum <rpm@xenomai.org>
---
 kernel/cobalt/Makefile           | 1 -
 kernel/cobalt/ipipe/Makefile     | 2 +-
 kernel/cobalt/{ => ipipe}/intr.c | 0
 3 files changed, 1 insertion(+), 2 deletions(-)
 rename kernel/cobalt/{ => ipipe}/intr.c (100%)

diff --git a/kernel/cobalt/Makefile b/kernel/cobalt/Makefile
index 7dfcae084..de3ae1bfc 100644
--- a/kernel/cobalt/Makefile
+++ b/kernel/cobalt/Makefile
@@ -6,7 +6,6 @@ xenomai-y :=	apc.o		\
 		clock.o		\
 		heap.o		\
 		init.o		\
-		intr.o		\
 		lock.o		\
 		registry.o	\
 		sched-idle.o	\
diff --git a/kernel/cobalt/ipipe/Makefile b/kernel/cobalt/ipipe/Makefile
index a395923a1..6021008fb 100644
--- a/kernel/cobalt/ipipe/Makefile
+++ b/kernel/cobalt/ipipe/Makefile
@@ -1,3 +1,3 @@
 obj-y +=	pipeline.o
 
-pipeline-y :=	init.o
+pipeline-y :=	init.o intr.o
diff --git a/kernel/cobalt/intr.c b/kernel/cobalt/ipipe/intr.c
similarity index 100%
rename from kernel/cobalt/intr.c
rename to kernel/cobalt/ipipe/intr.c
-- 
2.26.2



  parent reply	other threads:[~2020-12-16 16:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 16:44 [PATCH 0/3] Dovetail: Philippe Gerum
2020-12-16 16:44 ` [PATCH 1/3] cobalt/kernel: substitute ipipe_processor_id() with raw_smp_processor_id() Philippe Gerum
2020-12-16 16:44 ` [PATCH 2/3] cobalt/init: pipeline: abstract pipeline-specific inits Philippe Gerum
2020-12-16 16:44 ` Philippe Gerum [this message]
2020-12-17 17:22 ` [PATCH 0/3] Dovetail: Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201216164455.158920-4-rpm@xenomai.org \
    --to=rpm@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.