[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v2 2/7] ppc: simplify max_smt initialization in pp
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [PATCH v2 2/7] ppc: simplify max_smt initialization in ppc_cpu_realizefn() |
Date: |
Mon, 4 Jul 2016 13:53:01 +1000 |
User-agent: |
Mutt/1.6.1 (2016-04-27) |
On Sat, Jul 02, 2016 at 12:41:32AM +0200, Greg Kurz wrote:
> kvmppc_smt_threads() returns 1 if KVM is not enabled.
>
> Signed-off-by: Greg Kurz <address@hidden>
Applied to ppc-for-2.7
> ---
> target-ppc/translate_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 843f19b748fb..a06bf50b65d4 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -9516,7 +9516,7 @@ static void ppc_cpu_realizefn(DeviceState *dev, Error
> **errp)
> PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
> Error *local_err = NULL;
> #if !defined(CONFIG_USER_ONLY)
> - int max_smt = kvm_enabled() ? kvmppc_smt_threads() : 1;
> + int max_smt = kvmppc_smt_threads();
> #endif
>
> #if !defined(CONFIG_USER_ONLY)
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
signature.asc
Description: PGP signature