Re: [PATCH 2/3] x86: Use linker to offset symbols by __per_cpu_load

From: Jiri Slaby
Date: Wed Feb 11 2009 - 17:53:20 EST


On 02/09/2009 10:29 AM, Ingo Molnar wrote:
> * Brian Gerst <brgerst@xxxxxxxxx> wrote:
>
>> Impact: cleanup and bug fix
>>
>> Use the linker to create symbols for certain per-cpu variables
>> that are offset by __per_cpu_load. This allows the removal of
>> the runtime fixup of the GDT pointer, which fixes a bug with
>> resume reported by Jiri Slaby.
>>
>> Signed-off-by: Brian Gerst <brgerst@xxxxxxxxx>
>> Cc: Jiri Slaby <jirislaby@xxxxxxxxx>
>> ---
>> arch/x86/include/asm/percpu.h | 22 ++++++++++++++++++++++
>> arch/x86/include/asm/processor.h | 2 ++
>> arch/x86/kernel/cpu/common.c | 6 +-----
>> arch/x86/kernel/head_64.S | 21 ++-------------------
>> arch/x86/kernel/vmlinux_64.lds.S | 8 ++++++++
>> 5 files changed, 35 insertions(+), 24 deletions(-)
>
> applied to tip/core/percpu, thanks!
>
> Also added these tags:
>
> Reported-by: Jiri Slaby <jirislaby@xxxxxxxxx>
> Acked-by: Jiri Slaby <jirislaby@xxxxxxxxx>

Ok, fixes the problem for me, thanks.
--
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/