summaryrefslogtreecommitdiffstats
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorIgor Mammedov2017-05-03 14:56:56 +0200
committerEduardo Habkost2017-05-11 21:08:48 +0200
commit46de5913b6779b5cf656f62f945409be00f45b94 (patch)
tree95769fa7ce2e01d7c909e23876bbfec32dd9fa6d /target/arm/cpu.h
parenttests: add CPUs to numa node mapping test (diff)
downloadqemu-46de5913b6779b5cf656f62f945409be00f45b94.tar.gz
qemu-46de5913b6779b5cf656f62f945409be00f45b94.tar.xz
qemu-46de5913b6779b5cf656f62f945409be00f45b94.zip
hw/arm/virt: extract mp-affinity calculation in separate function
Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <1493816238-33120-3-git-send-email-imammedo@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r--target/arm/cpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 1055bfef3d..048faed9b9 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -710,6 +710,8 @@ static inline ARMCPU *arm_env_get_cpu(CPUARMState *env)
return container_of(env, ARMCPU, env);
}
+uint64_t arm_cpu_mp_affinity(int idx, uint8_t clustersz);
+
#define ENV_GET_CPU(e) CPU(arm_env_get_cpu(e))
#define ENV_OFFSET offsetof(ARMCPU, env)