Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210757
b: refs/heads/master
c: 2fd8186
h: refs/heads/master
i:
  210755: c897bd6
v: v3
  • Loading branch information
Tetsuo Handa authored and H. Peter Anvin committed Sep 13, 2010
1 parent b45514d commit accf7ab
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 36ac4b987bea9a95217e1af552252f275ca7fc44
refs/heads/master: 2fd818642a3c3a257f3b1262145a52bc1bfebd26
4 changes: 2 additions & 2 deletions trunk/arch/x86/include/asm/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ extern const char * const x86_power_flags[32];

#endif /* CONFIG_X86_64 */

#if __GNUC__ >= 4
/*
* Static testing of CPU features. Used the same as boot_cpu_has().
* These are only valid after alternatives have run, but will statically
Expand All @@ -304,7 +305,7 @@ extern const char * const x86_power_flags[32];
*/
static __always_inline __pure bool __static_cpu_has(u16 bit)
{
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
#if __GNUC__ > 4 || __GNUC_MINOR__ >= 5
asm goto("1: jmp %l[t_no]\n"
"2:\n"
".section .altinstructions,\"a\"\n"
Expand Down Expand Up @@ -345,7 +346,6 @@ static __always_inline __pure bool __static_cpu_has(u16 bit)
#endif
}

#if __GNUC__ >= 4
#define static_cpu_has(bit) \
( \
__builtin_constant_p(boot_cpu_has(bit)) ? \
Expand Down

0 comments on commit accf7ab

Please sign in to comment.