]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Make cpu_tss available to external modules
authorMarc Dionne <marc.c.dionne@gmail.com>
Mon, 4 May 2015 18:16:44 +0000 (15:16 -0300)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 5 May 2015 18:40:31 +0000 (20:40 +0200)
commit6b590b6c0d26a87e99275161cfcd2bcc1bdedd16
tree847db0cf7b03406ca17514bea8b1ff1a4357f1db
parent4eef1e7435dca549a555061f972211a256542416
x86: Make cpu_tss available to external modules

Commit ca8e1e3cc6 ("x86/asm/entry: Switch all C consumers of
kernel_stack to this_cpu_sp0()") changed current_thread_info
to use this_cpu_sp0, and indirectly made it rely on init_tss
which was exported with EXPORT_PER_CPU_SYMBOL_GPL.
As a result some macros and inline functions such as set/get_fs,
test_thread_flag and variants have been made unusable for
external modules.

Make cpu_tss exported with EXPORT_PER_CPU_SYMBOL so that these
functions are accessible again, as they were previously.

Signed-off-by: Marc Dionne <marc.dionne@your-file-system.com>
Acked-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/1430763404-21221-1-git-send-email-marc.dionne@your-file-system.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/process.c