summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/xsave.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2010-07-21 19:03:56 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2010-07-21 14:06:05 -0700
commit4995b9dba908436c1611454f9bd2cb3ddf6babee (patch)
tree2d8780fe66767a017bc05412dd36d6638f1c9c29 /arch/x86/kernel/xsave.c
parent45c2d7f46211a0b1f6b425c59575c53145afc4b4 (diff)
downloadlinux-4995b9dba908436c1611454f9bd2cb3ddf6babee.tar.gz
linux-4995b9dba908436c1611454f9bd2cb3ddf6babee.tar.bz2
linux-4995b9dba908436c1611454f9bd2cb3ddf6babee.zip
x86, xsave: Add __init attribute to setup_xstate_features()
This is called only from initialization code. Signed-off-by: Robert Richter <robert.richter@amd.com> LKML-Reference: <1279731838-1522-6-git-send-email-robert.richter@amd.com> Acked-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/xsave.c')
-rw-r--r--arch/x86/kernel/xsave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c
index 3b44a9b1eca4..cfc7901ee94e 100644
--- a/arch/x86/kernel/xsave.c
+++ b/arch/x86/kernel/xsave.c
@@ -370,7 +370,7 @@ static inline void xstate_enable(u64 mask)
* Record the offsets and sizes of different state managed by the xsave
* memory layout.
*/
-static void setup_xstate_features(void)
+static void __init setup_xstate_features(void)
{
int eax, ebx, ecx, edx, leaf = 0x2;