]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
xen: dynamically allocate irq & event structures
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 7 Jun 2010 20:28:49 +0000 (16:28 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:41:42 +0000 (10:41 -0400)
commitb21ddbf50386d10cdd60d8f8e744cff0496d2552
treefdd4a7ef7010262e22ad80797ac79578d63f3858
parent0794bfc74365d0de4b1d4920cb71031850551cbd
xen: dynamically allocate irq & event structures

Dynamically allocate the irq_info and evtchn_to_irq arrays, so that
1) the irq_info array scales to the actual number of possible irqs,
and 2) we don't needlessly increase the static size of the kernel
when we aren't running under Xen.

Derived on patch from Mike Travis <travis@sgi.com>.

[Impact: reduce memory usage ]
[v2: Conflict in drivers/xen/events.c: Replaced alloc_bootmen with kcalloc ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c