* [PATCH] Fix NR_PIRQS to be the same in Xen and Linux
@ 2005-07-12 17:16 Natasha Jarymowycz
2005-07-13 0:54 ` David Hopwood
0 siblings, 1 reply; 2+ messages in thread
From: Natasha Jarymowycz @ 2005-07-12 17:16 UTC (permalink / raw)
To: xen-devel
In linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h,
NR_PIRQS is 256. But in Xen NR_PIRQS is defined to be only 128. This
patch ups the number in Xen to 256.
Signed-off-by: Natasha Jarymowycz <natasha@us.ibm.com>
diff -Nrup mercurial/xen/include/xen/sched.h mercurial.patched/xen/include/xen/sched.h
--- mercurial/xen/include/xen/sched.h 2005-07-05 11:05:47.000000000 -0500
+++ mercurial.patched/xen/include/xen/sched.h 2005-07-12 10:33:28.000000000 -0500
@@ -122,7 +122,7 @@ struct domain
* domain's event-channel spinlock. Read accesses can also synchronise on
* the lock, but races don't usually matter.
*/
-#define NR_PIRQS 128 /* Put this somewhere sane! */
+#define NR_PIRQS 256 /* Put this somewhere sane! */
u16 pirq_to_evtchn[NR_PIRQS];
u32 pirq_mask[NR_PIRQS/32];
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix NR_PIRQS to be the same in Xen and Linux
2005-07-12 17:16 [PATCH] Fix NR_PIRQS to be the same in Xen and Linux Natasha Jarymowycz
@ 2005-07-13 0:54 ` David Hopwood
0 siblings, 0 replies; 2+ messages in thread
From: David Hopwood @ 2005-07-13 0:54 UTC (permalink / raw)
To: xen-devel
Natasha Jarymowycz wrote:
> In linux-2.6-xen-sparse/include/asm-xen/asm-i386/mach-xen/irq_vectors.h,
> NR_PIRQS is 256. But in Xen NR_PIRQS is defined to be only 128. This
> patch ups the number in Xen to 256.
[...]
> -#define NR_PIRQS 128 /* Put this somewhere sane! */
> +#define NR_PIRQS 256 /* Put this somewhere sane! */
Like the comment says, shouldn't it be put somewhere so that both XenLinux
and Xen will pick up the definition?
--
David Hopwood <david.nospam.hopwood@blueyonder.co.uk>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-13 0:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-12 17:16 [PATCH] Fix NR_PIRQS to be the same in Xen and Linux Natasha Jarymowycz
2005-07-13 0:54 ` David Hopwood
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.