]> git.baikalelectronics.ru Git - kernel.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)
commitd56ab5602ec73703a82d413cf36211609361faf8
tree3cf9abe886432ac82fc08e99241ec7254dc20193
parent9567bab98222c364ca5d2e9e91454ef9d250464e
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