]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/include/asm/cpufeature.h
x86/cpufeature: Speed up cpu_feature_enabled()
[karo-tx-linux.git] / arch / x86 / include / asm / cpufeature.h
index 9fba7a5dd24afd39cf6e60a61ba06b73d92e470a..68e4e8258b84126d59094ea1023568a8272dcdbd 100644 (file)
@@ -88,8 +88,7 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
  * is not relevant.
  */
 #define cpu_feature_enabled(bit)       \
-       (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 :  \
-        cpu_has(&boot_cpu_data, bit))
+       (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
 
 #define boot_cpu_has(bit)      cpu_has(&boot_cpu_data, bit)