All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PATCH] detect conflict with INPUT_PCSPKR
@ 2006-07-29  9:21 Jan Kiszka
  2006-07-29 16:44 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2006-07-29  9:21 UTC (permalink / raw)
  To: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 709 bytes --]

This is a simple patch to catch the very rare but fatal conflict between
Xenomai's TSC emulation and the PC speaker driver on 2.6/x86.

Jan


--- include/asm-i386/hal.h      (Revision 1390)
+++ include/asm-i386/hal.h      (Arbeitskopie)
@@ -169,6 +169,11 @@ static inline unsigned long long rthal_r
     return t;
 }
 #else  /* !CONFIG_X86_TSC */
+#if defined(CONFIG_INPUT_PCSPKR) || defined(CONFIG_INPUT_PCSPKR_MODULE)
+#error Please disable PC speaker driver (CONFIG_INPUT_PCSPKR).
+#error It conflicts with Xenomai's TSC emulation.
+#endif /* CONFIG_INPUT_PCSPKR */
+
 #define RTHAL_8254_COUNT2LATCH  0xfffe
 void rthal_setup_8254_tsc(void);
 rthal_time_t rthal_get_8254_tsc(void);



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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-08-01 13:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29  9:21 [Xenomai-core] [PATCH] detect conflict with INPUT_PCSPKR Jan Kiszka
2006-07-29 16:44 ` Gilles Chanteperdrix
2006-07-29 16:55   ` Gilles Chanteperdrix
2006-07-30  7:18     ` Jan Kiszka
2006-07-31 16:36       ` Gilles Chanteperdrix
2006-07-31 16:51         ` Jan Kiszka
2006-07-31 17:29           ` Gilles Chanteperdrix
2006-08-01 13:35             ` Philippe Gerum

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.