All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH 3/3] Report IPIs by name
@ 2007-07-12 22:18 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2007-07-12 22:18 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core


[-- Attachment #1.1: Type: text/plain, Size: 137 bytes --]

Trivial beautification of /proc/xenomai/irq: Starring at the output of
some SMP box, I wondered what those two unnamed IRQs are for...

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: name-ipis-in-proc-output.patch --]
[-- Type: text/x-patch; name="name-ipis-in-proc-output.patch", Size: 725 bytes --]

---
 ksrc/nucleus/intr.c |    8 ++++++++
 1 file changed, 8 insertions(+)

Index: xenomai/ksrc/nucleus/intr.c
===================================================================
--- xenomai.orig/ksrc/nucleus/intr.c
+++ xenomai/ksrc/nucleus/intr.c
@@ -860,6 +860,14 @@ int xnintr_irq_proc(unsigned int irq, ch
 	} else if (irq == XNARCH_TIMER_IRQ) {
 		p += sprintf(p, "         [timer]");
 		return p - str;
+#ifdef CONFIG_SMP
+	} else if (irq == RTHAL_SERVICE_IPI0) {
+		p += sprintf(p, "         [IPI]");
+		return p - str;
+	} else if (irq == RTHAL_CRITICAL_IPI) {
+		p += sprintf(p, "         [critical sync]");
+		return p - str;
+#endif /* CONFIG_SMP */
 	}
 
 	xnlock_get_irqsave(&intrlock, s);

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-12 22:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 22:18 [Xenomai-core] [PATCH 3/3] Report IPIs by name Jan Kiszka

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.