Re: [PATCH] x86: Move llc_shared_map out of cpu_info

From: Borislav Petkov
Date: Sat Jan 22 2011 - 05:11:54 EST


On Fri, Jan 21, 2011 at 06:29:44PM -0500, Yinghai Lu wrote:
>
> cpu_info is already with per_cpu, We can take llc_shared_map out of cpu_info,
> and declare it as per_cpu variable directly.
>
> So later referencing could be simple and directly instead of diving to find
> cpu_info at first.
>
> Also could make smp_store_cpu_info() much simple to avoid to do save and restore trick.
>
>
> Signed-off-by: Yinghai Lu <yinghai@xxxxxxxxxx>

Yep, it's only natural to do that.

Acked-by: Borislav Petkov <borislav.petkov@xxxxxxx>

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
General Managers: Alberto Bozzo, Andrew Bowd
Registration: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/