linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][RT] - fix 32-bit breakage on rt/threadirqs branch
@ 2008-12-12 20:03 Clark Williams
  0 siblings, 0 replies; only message in thread
From: Clark Williams @ 2008-12-12 20:03 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: RT

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven,

Attached is a patch that fixes the 32-bit compile breakage you told me
about on the rt/threadirqs branch. Compiles with an allmodconfig build.

Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAklCw48ACgkQHyuj/+TTEp0r3wCaAj0QN4BxLJgifrqYxE1w2Drk
utkAoJyYSvb+6vrWn6b+I/Swc+4jWUyk
=HhS3
-----END PGP SIGNATURE-----

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix-32-bit-breakage.patch --]
[-- Type: text/x-patch; name=fix-32-bit-breakage.patch, Size: 1198 bytes --]

From e1d9cd6f8aa7261cbf299ad222e7e7cf8b0cce65 Mon Sep 17 00:00:00 2001
From: Clark Williams <williams@redhat.com>
Date: Fri, 12 Dec 2008 12:21:04 -0600
Subject: [PATCH] fixed 32-bit breakage in arch/x86/kernel/io_apic.c

I pulled in the wrong functions when merging 32 and 64-bit for threaded
IRQs, then didn't test the 32-bit build. Builds now with allmodconfig.

Signed-off-by: Clark Williams <williams@redhat.com>
---
 arch/x86/kernel/io_apic.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 311d003..a66efd7 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -2412,10 +2412,8 @@ static void ack_apic_level(unsigned int irq)
 	if (!(v & (1 << (i & 0x1f)))) {
 		atomic_inc(&irq_mis_count);
 		spin_lock(&ioapic_lock);
-		/* mask = 1, trigger = 0 */
-		__modify_IO_APIC_irq(irq, 0x00010000, 0x00008000);
-		/* mask = 0, trigger = 1 */
-		__modify_IO_APIC_irq(irq, 0x00008000, 0x00010000);
+                __mask_and_edge_IO_APIC_irq(irq);
+                __unmask_and_level_IO_APIC_irq(irq);
 		spin_unlock(&ioapic_lock);
 	}
 #endif
-- 
1.5.5.1


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

only message in thread, other threads:[~2008-12-12 20:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-12 20:03 [PATCH][RT] - fix 32-bit breakage on rt/threadirqs branch Clark Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).