]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] htirq: refactor so we only have one function that writes to the chip
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 9 Nov 2006 01:44:57 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 9 Nov 2006 02:29:24 +0000 (18:29 -0800)
commit9fe2fef285a964cdca69ce76518ac105fdc451f7
treeba735cbdc35819837bc53ef1385a478f5800fd7a
parent096d419755f2f9ade9c898cfd11851aeaf3e2421
[PATCH] htirq: refactor so we only have one function that writes to the chip

This refactoring actually optimizes the code a little by caching the value
that we think the device is programmed with instead of reading it back from
the hardware.  Which simplifies the code a little and should speed things up a
bit.

This patch introduces the concept of a ht_irq_msg and modifies the
architecture read/write routines to update this code.

There is a minor consistency fix here as well as x86_64 forgot to initialize
the htirq as masked.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
Acked-by: Bryan O'Sullivan <bos@pathscale.com>
Cc: <olson@pathscale.com>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/io_apic.c
arch/x86_64/kernel/io_apic.c
drivers/pci/htirq.c
include/linux/htirq.h