Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191510
b: refs/heads/master
c: c9775b4
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed May 12, 2010
1 parent e963574 commit eafce01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3c8acd04376d604370dcb6cd2143c9c14078a50
refs/heads/master: c9775b4cc522e5f1b40b1366a993f0f05f600f39
12 changes: 3 additions & 9 deletions trunk/arch/x86/include/asm/i387.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <linux/hardirq.h>
#include <linux/slab.h>
#include <asm/asm.h>
#include <asm/cpufeature.h>
#include <asm/processor.h>
#include <asm/sigcontext.h>
#include <asm/user.h>
Expand Down Expand Up @@ -57,16 +58,9 @@ extern int restore_i387_xstate_ia32(void __user *buf);

#define X87_FSW_ES (1 << 7) /* Exception Summary */

static inline bool use_xsave(void)
static __always_inline __pure bool use_xsave(void)
{
u8 has_xsave;

alternative_io("mov $0, %0",
"mov $1, %0",
X86_FEATURE_XSAVE,
"=qm" (has_xsave));

return has_xsave;
return static_cpu_has(X86_FEATURE_XSAVE);
}

#ifdef CONFIG_X86_64
Expand Down

0 comments on commit eafce01

Please sign in to comment.