All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: adeos-main <adeos-main@gna.org>
Subject: [Adeos-main] [PATCH] x86: revert IRQs replay order
Date: Fri, 20 Oct 2006 12:33:55 +0200	[thread overview]
Message-ID: <4538A613.80606@domain.hid> (raw)


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

While digging into a latency issue with multiple IRQs pending (patch
will likely follow soon), I noticed that the replay order on x86 is the
inverse of the hardware order. Instead of iterating from lowest IRQ
number to highest, ipipe currently starts with the highest one. The
attached patch fixes this.

Jan

[-- Attachment #1.2: fix-x86-irq-replay-order.patch --]
[-- Type: text/plain, Size: 457 bytes --]

Index: linux-2.6.17.13/include/asm-i386/ipipe.h
===================================================================
--- linux-2.6.17.13.orig/include/asm-i386/ipipe.h
+++ linux-2.6.17.13/include/asm-i386/ipipe.h
@@ -242,8 +242,7 @@ extern int __ipipe_tick_irq;
 
 static inline unsigned long __ipipe_ffnz(unsigned long ul)
 {
-      __asm__("bsrl %1, %0":"=r"(ul)
-      :	"r"(ul));
+	__asm__("bsfl %1, %0":"=r"(ul):"r"(ul));
 	return ul;
 }
 

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

             reply	other threads:[~2006-10-20 10:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20 10:33 Jan Kiszka [this message]
2006-10-20 13:21 ` [Adeos-main] [PATCH] x86: revert IRQs replay order Philippe Gerum
2006-10-20 13:53   ` Jan Kiszka
2006-10-20 14:05     ` Philippe Gerum

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=4538A613.80606@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=adeos-main@gna.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.