qemu-irix/hw/ppc
Igor Mammedov 6bea1ddf8b numa: reduce code duplication by adding helper numa_get_node_for_cpu()
Replace repeated pattern

    for (i = 0; i < nb_numa_nodes; i++) {
        if (test_bit(idx, numa_info[i].node_cpu)) {
           ...
           break;

with a helper function to lookup numa node index for cpu.

Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-10-10 01:16:57 +03:00
..
Makefile.objs hw/ppc: add a ppc_create_page_sizes_prop() helper routine 2016-09-07 12:40:12 +10:00
e500-ccsr.h
e500.c sysbus: Remove ignored return value of FindSysbusDeviceFunc 2016-09-27 17:03:34 -03:00
e500.h
e500plat.c
fdt.c hw/ppc: add a ppc_create_page_sizes_prop() helper routine 2016-09-07 12:40:12 +10:00
mac.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
mac_newworld.c
mac_oldworld.c
mpc8544_guts.c
mpc8544ds.c
ppc.c ppc: parse cpu features once 2016-08-13 17:32:58 +10:00
ppc4xx_devs.c
ppc4xx_pci.c
ppc405.h Remove unused function declarations 2016-09-15 15:32:22 +03:00
ppc405_boards.c
ppc405_uc.c
ppc440_bamboo.c
ppc_booke.c
ppce500_spin.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
prep.c
spapr.c hw/ppc/spapr: Use POWER8 by default for the pseries-2.8 machine 2016-10-06 16:15:53 +11:00
spapr_cpu_core.c numa: reduce code duplication by adding helper numa_get_node_for_cpu() 2016-10-10 01:16:57 +03:00
spapr_drc.c spapr_drc: convert to trace framework instead of DPRINTF 2016-09-23 10:29:40 +10:00
spapr_events.c hw/ppc: include fdt helper routine in a common file 2016-09-07 09:52:14 +10:00
spapr_hcall.c cpus: pass CPUState to run_on_cpu helpers 2016-09-27 11:57:29 +02:00
spapr_iommu.c memory: introduce IOMMUOps.notify_flag_changed 2016-09-27 09:00:04 +02:00
spapr_pci.c spapr_pci: Add numa node id 2016-09-23 12:39:07 +10:00
spapr_pci_vfio.c Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
spapr_rng.c
spapr_rtas.c ppc patch queue 2016-09-23 2016-09-23 14:26:12 +01:00
spapr_rtas_ddw.c
spapr_rtc.c
spapr_vio.c spapr_vio: convert to trace framework instead of DPRINTF 2016-09-23 10:29:40 +10:00
trace-events spapr_vio: convert to trace framework instead of DPRINTF 2016-09-23 10:29:40 +10:00
virtex_ml507.c