x86/fpu: Kill eager_fpu_init_bp()
authorOleg Nesterov <[email protected]>
Sat, 14 Mar 2015 15:13:34 +0000 (16:13 +0100)
committerIngo Molnar <[email protected]>
Mon, 23 Mar 2015 09:14:00 +0000 (10:14 +0100)
commit7fc253e277ecf1ea57c2d670bdbcda3dffd19453
tree8dbbac77caef39b26171ca09d2132e33db1ad43d
parent4bd5bf8c85e6bca5be9e7c4b3d7ad1942ae323f3
x86/fpu: Kill eager_fpu_init_bp()

Now that eager_fpu_init_bp() does setup_init_fpu_buf() only and
nothing else, we can remove it and move this code into its "caller",
eager_fpu_init().

This avoids the confusing games with "static __refdata void (*boot_func)":

init_xstate_buf can be NULL only during boot, so it is safe to call the
__init-annotated setup_init_fpu_buf() function in eager_fpu_init(), we
just need to mark it as __init_refok.

Signed-off-by: Oleg Nesterov <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Pekka Riikonen <[email protected]>
Cc: Quentin Casasnovas <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Suresh Siddha <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/xsave.c