@@ -132,11 +132,12 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
132
132
x86_this_cpu_test_bit(bit, cpu_info.x86_capability))
133
133
134
134
/*
135
- * This macro is for detection of features which need kernel
136
- * infrastructure to be used. It may *not* directly test the CPU
137
- * itself. Use the cpu_has() family if you want true runtime
138
- * testing of CPU features, like in hypervisor code where you are
139
- * supporting a possible guest feature where host support for it
135
+ * This is the default CPU features testing macro to use in code.
136
+ *
137
+ * It is for detection of features which need kernel infrastructure to be
138
+ * used. It may *not* directly test the CPU itself. Use the cpu_has() family
139
+ * if you want true runtime testing of CPU features, like in hypervisor code
140
+ * where you are supporting a possible guest feature where host support for it
140
141
* is not relevant.
141
142
*/
142
143
#define cpu_feature_enabled (bit ) \
@@ -161,13 +162,6 @@ extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit);
161
162
#define setup_force_cpu_bug (bit ) setup_force_cpu_cap(bit)
162
163
163
164
/*
164
- * Static testing of CPU features. Used the same as boot_cpu_has(). It
165
- * statically patches the target code for additional performance. Use
166
- * static_cpu_has() only in fast paths, where every cycle counts. Which
167
- * means that the boot_cpu_has() variant is already fast enough for the
168
- * majority of cases and you should stick to using it as it is generally
169
- * only two instructions: a RIP-relative MOV and a TEST.
170
- *
171
165
* Do not use an "m" constraint for [cap_byte] here: gcc doesn't know
172
166
* that this is only used on a fallback path and will sometimes cause
173
167
* it to manifest the address of boot_cpu_data in a register, fouling
0 commit comments