| 1237 | } |
| 1238 | |
| 1239 | static void |
| 1240 | amd_thresholding_resume(int i) |
| 1241 | { |
| 1242 | struct amd_et_state *cc; |
| 1243 | |
| 1244 | KASSERT(i < mca_banks, ("CPU %d has more MC banks", PCPU_GET(cpuid))); |
| 1245 | |
| 1246 | /* Ignore banks not monitored by this CPU. */ |
| 1247 | if (!(PCPU_GET(cmci_mask) & 1 << i)) |
| 1248 | return; |
| 1249 | |
| 1250 | cc = &amd_et_state[PCPU_GET(cpuid)][i]; |
| 1251 | cc->last_intr = 0; |
| 1252 | cc->cur_threshold = 1; |
| 1253 | amd_thresholding_start(cc, i); |
| 1254 | } |
| 1255 | #endif |
| 1256 | |
| 1257 | /* |
no test coverage detected