2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 18:53:52 +08:00
linux-next/drivers/xen
Mike Travis 7f7ace0cda cpumask: update irq_desc to use cpumask_var_t
Impact: reduce memory usage, use new cpumask API.

Replace the affinity and pending_masks with cpumask_var_t's.  This adds
to the significant size reduction done with the SPARSE_IRQS changes.

The added functions (init_alloc_desc_masks & init_copy_desc_masks) are
in the include file so they can be inlined (and optimized out for the
!CONFIG_CPUMASKS_OFFSTACK case.)  [Naming chosen to be consistent with
the other init*irq functions, as well as the backwards arg declaration
of "from, to" instead of the more common "to, from" standard.]

Includes a slight change to the declaration of struct irq_desc to embed
the pending_mask within ifdef(CONFIG_SMP) to be consistent with other
references, and some small changes to Xen.

Tested: sparse/non-sparse/cpumask_offstack/non-cpumask_offstack/nonuma/nosmp on x86_64

Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Cc: virtualization@lists.osdl.org
Cc: xen-devel@lists.xensource.com
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
2009-01-11 19:12:46 +01:00
..
xenbus xen: add xenfs to allow usermode <-> Xen interaction 2009-01-08 08:30:59 -08:00
xenfs xen: add xenfs to allow usermode <-> Xen interaction 2009-01-08 08:30:59 -08:00
balloon.c xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
cpu_hotplug.c x86, um: ... and asm-x86 move 2008-10-22 22:55:20 -07:00
events.c cpumask: update irq_desc to use cpumask_var_t 2009-01-11 19:12:46 +01:00
features.c xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
grant-table.c xen: clean up asm/xen/hypervisor.h 2008-12-16 21:50:31 +01:00
Kconfig xen: add xenfs to allow usermode <-> Xen interaction 2009-01-08 08:30:59 -08:00
Makefile xen: add xenfs to allow usermode <-> Xen interaction 2009-01-08 08:30:59 -08:00
manage.c xen: don't reload cr3 on suspend 2008-10-23 21:54:35 +02:00
xencomm.c xen: portability clean up and some minor clean up for xencomm.c 2008-10-23 21:54:36 +02:00