MCPcopy Create free account
hub / github.com/F-Stack/f-stack / amd_thresholding_resume

Function amd_thresholding_resume

freebsd/x86/x86/mca.c:1239–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237}
1238
1239static void
1240amd_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/*

Callers 1

_mca_initFunction · 0.85

Calls 1

amd_thresholding_startFunction · 0.85

Tested by

no test coverage detected