Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53931
b: refs/heads/master
c: 3671df8
h: refs/heads/master
i:
  53929: f09b37d
  53927: 8c9a1e0
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed May 2, 2007
1 parent 6a473c9 commit 0fd0401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: c7f81c9453375d6416658995eafd3397cb9bba1d
refs/heads/master: 3671df8572a299acff9c9cac2bf7279ee614d154
8 changes: 6 additions & 2 deletions trunk/include/asm-i386/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,12 @@
#define X86_FEATURE_LAHF_LM (6*32+ 0) /* LAHF/SAHF in long mode */
#define X86_FEATURE_CMP_LEGACY (6*32+ 1) /* If yes HyperThreading not valid */

#define cpu_has(c, bit) test_bit(bit, (c)->x86_capability)
#define boot_cpu_has(bit) test_bit(bit, boot_cpu_data.x86_capability)
#define cpu_has(c, bit) \
((__builtin_constant_p(bit) && (bit) < 32 && \
(1UL << (bit)) & REQUIRED_MASK1) ? \
1 : \
test_bit(bit, (c)->x86_capability))
#define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)

#define cpu_has_fpu boot_cpu_has(X86_FEATURE_FPU)
#define cpu_has_vme boot_cpu_has(X86_FEATURE_VME)
Expand Down

0 comments on commit 0fd0401

Please sign in to comment.