Re: interrupt processing

Erik Mouw <[email protected]>
Newsgroups gmane.linux.smp
Organization Eric Conspiracy Secret Labs
Message-ID <[email protected]>
On Fri, Jun 15, 2007 at 03:46:39PM +0100, Matthew Faulkner wrote:
> Probably a very simple question, but can anyone tell me how the kernel
> decides which CPU (or core) a hardware interrupt gets handled by?

It programs the APIC. IRQs can be handled by a random CPU, by a set of
CPUs, or by a single CPU.

You can have some influence on the APIC IRQ routing by writing
/proc/irq/<irqno>/smp_affinity .


Erik

-- 
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGiR/9/PlVHJtIto0RAh1iAJ43Ypuls603z/uTZ9YtYyCCSJ7hXwCeM2hu
Jxf4RsAwwQftVtJHMefEgmU=
=FoB/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.