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

Function amd_thresholding_setup

freebsd/x86/x86/mca.c:993–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991}
992
993static void
994amd_thresholding_setup(void)
995{
996 u_int i;
997
998 amd_et_state = malloc((mp_maxid + 1) * sizeof(struct amd_et_state *),
999 M_MCA, M_WAITOK);
1000 for (i = 0; i <= mp_maxid; i++)
1001 amd_et_state[i] = malloc(sizeof(struct amd_et_state) *
1002 mca_banks, M_MCA, M_WAITOK | M_ZERO);
1003 SYSCTL_ADD_PROC(NULL, SYSCTL_STATIC_CHILDREN(_hw_mca), OID_AUTO,
1004 "cmc_throttle", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_MPSAFE,
1005 &cmc_throttle, 0, sysctl_positive_int, "I",
1006 "Interval in seconds to throttle corrected MC interrupts");
1007}
1008#endif
1009
1010static void

Callers 1

mca_setupFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected