Skip to content

Commit

Permalink
x86/fpu: Fix fpu__init_system_xstate() comments
Browse files Browse the repository at this point in the history
Remove obsolete comment about __init limitations: in the new code there aren't any.

Also standardize the comment style in the function while at it.

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
  • Loading branch information
Ingo Molnar committed May 25, 2015
1 parent fd169b0 commit 6e55359
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions arch/x86/kernel/fpu/xstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ static void __init init_xstate_size(void)
/*
* Enable and initialize the xsave feature.
* Called once per system bootup.
*
* ( Not marked __init because of false positive section warnings. )
*/
void __init fpu__init_system_xstate(void)
{
Expand Down Expand Up @@ -345,17 +343,13 @@ void __init fpu__init_system_xstate(void)
BUG();
}

/*
* Support only the state known to OS.
*/
/* Support only the state known to the OS: */
xfeatures_mask = xfeatures_mask & XCNTXT_MASK;

/* Enable xstate instructions to be able to continue with initialization: */
fpu__init_cpu_xstate();

/*
* Recompute the context size for enabled features
*/
/* Recompute the context size for enabled features: */
init_xstate_size();

update_regset_xstate_info(xstate_size, xfeatures_mask);
Expand Down

0 comments on commit 6e55359

Please sign in to comment.