]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: use linker to offset symbols by __per_cpu_load
authorBrian Gerst <brgerst@gmail.com>
Sun, 8 Feb 2009 14:58:39 +0000 (09:58 -0500)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 09:30:30 +0000 (10:30 +0100)
commit2add8e235cbe0dcd672c33fc322754e15500238c
tree3cf9abe886432ac82fc08e99241ec7254dc20193
parentd3770449d3cb058b94ca1d050d5ced4a66c75ce4
x86: use linker to offset symbols by __per_cpu_load

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.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Acked-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/percpu.h
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/head_64.S
arch/x86/kernel/vmlinux_64.lds.S