Subject: Re: [PATCH] Fix more per-cpu typos

From: Andi Kleen <[email-masked]>
Date: Wed, 2 Aug 2006 05:02:11 +0200

> --- a/arch/x86_64/kernel/smp.c
> +++ b/arch/x86_64/kernel/smp.c
> @@ -203,7 +203,7 @@ int __cpuinit init_smp_flush(void)
>  {
>  	int i;
>  	for_each_cpu_mask(i, cpu_possible_map) {
> -		spin_lock_init(&per_cpu(flush_state.tlbstate_lock, i));
> +		spin_lock_init(&per_cpu(flush_state, i).tlbstate_lock);

What advantage does this have over the earlier form?

In general this should be split up into three patches.

-Andi