qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 3/8] cpus: Add a macro to walk CPUs in revers


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH v4 3/8] cpus: Add a macro to walk CPUs in reverse
Date: Fri, 05 Jun 2015 23:39:18 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Am 05.06.2015 um 13:25 schrieb Bharata B Rao:
> Add CPU_FOREACH_REVERSE that walks CPUs in reverse.
> 
> Needed for PowerPC CPU device tree reorganization.
> 
> Signed-off-by: Bharata B Rao <address@hidden>
> Cc: Andreas Färber <address@hidden>
> ---
>  include/qom/cpu.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/qom/cpu.h b/include/qom/cpu.h
> index 39f0f19..42f42f5 100644
> --- a/include/qom/cpu.h
> +++ b/include/qom/cpu.h
> @@ -323,6 +323,8 @@ extern struct CPUTailQ cpus;
>  #define CPU_FOREACH(cpu) QTAILQ_FOREACH(cpu, &cpus, node)
>  #define CPU_FOREACH_SAFE(cpu, next_cpu) \
>      QTAILQ_FOREACH_SAFE(cpu, &cpus, node, next_cpu)
> +#define CPU_FOREACH_REVERSE(cpu) \
> +    QTAILQ_FOREACH_REVERSE(cpu, &cpus, CPUTailQ, node)
>  #define first_cpu QTAILQ_FIRST(&cpus)
>  
>  DECLARE_TLS(CPUState *, current_cpu);

Reviewed-by: Andreas Färber <address@hidden>

Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB
21284 (AG Nürnberg)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]