Lines Matching refs:method
66 static unsigned int spectre_v2_install_workaround(unsigned int method)
74 switch (method) {
109 static unsigned int spectre_v2_install_workaround(unsigned int method)
119 unsigned int state, method = 0;
129 method = SPECTRE_V2_METHOD_BPIALL;
135 method = SPECTRE_V2_METHOD_ICIALLU;
161 method = SPECTRE_V2_METHOD_HVC;
165 method = SPECTRE_V2_METHOD_SMC;
175 state = spectre_v2_install_workaround(method);
177 spectre_v2_update_state(state, method);
183 static const char *spectre_bhb_method_name(int method)
185 switch (method) {
197 static int spectre_bhb_install_workaround(int method)
199 if (spectre_bhb_method != method) {
201 pr_err("CPU%u: Spectre BHB: method disagreement, system vulnerable\n",
207 if (spectre_bhb_update_vectors(method) == SPECTRE_VULNERABLE)
210 spectre_bhb_method = method;
213 smp_processor_id(), spectre_bhb_method_name(method));
219 static int spectre_bhb_install_workaround(int method)
227 unsigned int state, method = 0;
235 method = SPECTRE_V2_METHOD_LOOP8;
241 method = SPECTRE_V2_METHOD_BPIALL;
250 state = spectre_bhb_install_workaround(method);
252 spectre_v2_update_state(state, method);